SimpleLabeling Class

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

NameDescription
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

NameTypeAccessDescription
font_colorSystem.Drawing.Colorr/wDetermines color of text.
font_familystringr/wFont family to use to render text. The default is system dependent value.
font_sizeMeasurementr/wSize of the text.
font_styleFontStyler/wStyle to apply to text.
halo_colorSystem.Drawing.Colorr/wColor of the halo (stroke) around text.
halo_sizeMeasurementr/wSize of the halo (stroke) around text.
label_attributestringr/wAttribute 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_modeMultipartModer/wSpecifies rendering behavior for multipart geometries. Default is MultipartMode.ALL.
null [static]NullLabelingrGets an instance of NullLabeling.
placementLabelPlacementr/wLabel placement specifies how labels are placed relatively to feature’s geometries.
priorityintr/wIndicates priority of this label in case if it overlaps with another label. The label with lower priority is not rendered.
Default is 1000.

Methods

NameDescription
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:

ParameterTypeDescription
label_attributestringAttribute name to use as a source of labels.

Constructor: SimpleLabeling(other)

 SimpleLabeling(other) 

Initializes a new instance of the SimpleLabeling class.

Parameters:

ParameterTypeDescription
otherSimpleLabelingThe other SimpleLabeling to copy data from.

Method: clone()

 clone() 

Clones this instance.

Returns

TypeDescription
SimpleLabelingA clone of this instance.