Class SimpleLabeling
SimpleLabeling class
A simple labeling places label on every feature.
public class SimpleLabeling : Labeling
Constructors
| Name | Description |
|---|
| SimpleLabeling() | Initializes a new instance of the SimpleLabeling class. |
| SimpleLabeling(SimpleLabeling) | Initializes a new instance of the SimpleLabeling class. |
| SimpleLabeling(string) | Initializes a new instance of the SimpleLabeling class. |
Properties
| Name | Description |
|---|
| FeatureBasedConfiguration { get; set; } | A callback that is used to configure this labeling before handling a feature. |
| FontColor { get; set; } | Determines color of text. |
| FontFamily { get; set; } | Font family to use to render text. The default is system dependent value. |
| FontSize { get; set; } | Size of the text. |
| FontStyle { get; set; } | Style to apply to text. |
| GeometryExpression { get; set; } | Provides a way to substitute the feature geometry with a one modified for labeling. This callback is invoked the first after FeatureBasedConfiguration . Default is null (use feature geometry as-is). |
| HaloColor { get; set; } | Color of the halo (stroke) around text. |
| HaloSize { get; set; } | Size of the halo (stroke) around text. |
| LabelAttribute { get; set; } | Attribute name to use as a source of labels. Ignored if LabelExpression is set. Either LabelAttribute or LabelExpression must be set before rendering; InvalidOperationException is thrown otherwise. |
| LabelExpression { get; set; } | Provides a way to customize and format label text. If set, overrides LabelAttribute. Either LabelAttribute or LabelExpression must be set before rendering; InvalidOperationException is thrown otherwise. |
| MultipartMode { get; set; } | Specifies rendering behavior for multipart geometries. Default is All. |
| Placement { get; set; } | Label placement specifies how labels are placed relatively to feature’s geometries. |
| Priority { get; set; } | Indicates priority of this label in case if it overlaps with another label. The label with lower priority is not rendered. Default is 1000. |
Methods
| Name | Description |
|---|
| Clone() | Clones this instance. |
See Also