LabelingDescription
A class that represents labels defined in the layer.
Property |
Type |
Description |
---|---|---|
LabelClassDescriptions |
An array of label class description objects. |
Remarks
Labeling is the placing of text near a feature to purvey information about that feature. Normally the label is based on attribute values of the feature itself, but it does not have to be. The labeling description includes the ability to specify which features are to be labeled (all features, features identified by an SQL query, and so on); the expression that is used to label them (expression can be simple or complex based on VB and Java scripting); placement options; and visibility scale.
This object is only returned when the layer's HasLabels = True.
There are basically two ways features in the layer can be labeled:
- All features will be labeled using the same label style
- Or:
- You can use label classes to specify different labeling properties for features within the same layer. For example, in a layer of cities, you might label those with a population greater than 100,000 with a larger font size and those with a population less than 100,000 with a smaller font size. In addition, if the features in your layer are symbolized with different symbols, you can create label classes from your symbology classes.