ESRI.ArcGIS.ADF.IMS
LabelOccurrencePreference Property
See Also 
ESRI.ArcGIS.ADF.IMS.Display.Renderer Namespace > LabelRenderer Class : LabelOccurrencePreference Property




Gets or sets the value that determines how often a feature is labeled.

Syntax

Visual Basic (Declaration) 
Public Property LabelOccurrencePreference As LabelOccurrencePreference
Visual Basic (Usage)Copy Code
Dim instance As LabelRenderer
Dim value As LabelOccurrencePreference
 
instance.LabelOccurrencePreference = value
 
value = instance.LabelOccurrencePreference
C# 
public LabelOccurrencePreference LabelOccurrencePreference {get; set;}

Example

For an example of using this property, see the SimpleLabelRenderer overview.

Remarks

  • One_Label_Per_Part Labels all parts of a feature in the case of multipart features. For instance, the State of Hawaii consists of several islands, but they are grouped together as one polygon feature. Each island is labeled. Known limit: Not all parts of a feature may be labeled.
  • One_Label_Per_Name Labels once per feature name. When several features share the same name, only one label is shown. For example, if there is more than one polygon with the name "Residential", only one "Residential" polygon is labeled. Known limit: You may see duplicate labels for a feature name.
  • One_Label_Per_Shape Labels once per feature even if there are multiple segments. For example, the group of islands that make up Hawaii are only labeled once. If there are other features with the same name, they are also labeled. Known limit: You may see duplicate labels for a shape.

Default is One_Label_Per_Name

Known limit: this attribute may not work as expected, particularly when labeling lines or points.

See Also

© 2010 All Rights Reserved.