SimpleLabeling Class
Contents
[
Hide
]Summary: A simple labeling places label on every feature.
Module: aspose.gis.rendering.labelings
Full Name: aspose.gis.rendering.labelings.SimpleLabeling
Inheritance: Labeling
Aspose.PSD Version: 25.9.0
Constructors
| Name | Description |
|---|---|
| SimpleLabeling() | Initializes a new instance of the SimpleLabeling class. |
| SimpleLabeling(label_attribute) | Initializes a new instance of the SimpleLabeling class. |
| SimpleLabeling(other) | Initializes a new instance of the SimpleLabeling class. |
Properties
| Name | Type | Access | Description |
|---|---|---|---|
| font_color | System.Drawing.Color | r/w | Determines color of text. |
| font_family | string | r/w | Font family to use to render text. The default is system dependent value. |
| font_size | Measurement | r/w | Size of the text. |
| font_style | FontStyle | r/w | Style to apply to text. |
| halo_color | System.Drawing.Color | r/w | Color of the halo (stroke) around text. |
| halo_size | Measurement | r/w | Size of the halo (stroke) around text. |
| label_attribute | string | r/w | Attribute name to use as a source of labels. Ignored if None is set. Either SimpleLabeling.label_attribute or None must be set before rendering; InvalidOperationException is thrown otherwise. |
| multipart_mode | MultipartMode | r/w | Specifies rendering behavior for multipart geometries. Default is MultipartMode.ALL. |
| null [static] | NullLabeling | r | Gets an instance of NullLabeling. |
| placement | LabelPlacement | r/w | Label placement specifies how labels are placed relatively to feature’s geometries. |
| priority | int | r/w | 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. |
Constructor: SimpleLabeling()
SimpleLabeling()
Initializes a new instance of the SimpleLabeling class.
Constructor: SimpleLabeling(label_attribute)
SimpleLabeling(label_attribute)
Initializes a new instance of the SimpleLabeling class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| label_attribute | string | Attribute name to use as a source of labels. |
Constructor: SimpleLabeling(other)
SimpleLabeling(other)
Initializes a new instance of the SimpleLabeling class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| other | SimpleLabeling | The other SimpleLabeling to copy data from. |
Method: clone()
clone()
Clones this instance.
Returns
| Type | Description |
|---|---|
| SimpleLabeling | A clone of this instance. |