Click or drag to resize

LabelDefinitionWhereClause Property

Gets or sets the SQL WHERE clause expression that limits the set of features for which labels will be generated and placed.

Namespace:  Esri.ArcGISRuntime.Mapping
Assembly:  Esri.ArcGISRuntime (in Esri.ArcGISRuntime.dll) Version: 100.11.0
Syntax
public string WhereClause { get; set; }

Property Value

Type: String
Remarks

This is a SQL where clause that can refer to the attributes of the feature, for example:

  • NAME LIKE 'A%' (Only label features with NAME attribute values starting with 'A').
  • (LENGTH > CAPACITY) and (TYPE = 1) (Only label features whose attributes satisfy the SQL condition).

The default value is an empty string, which will allow all features in the data source and extent to be labeled.

See Also