Skip to content

LabelInformation

Namespace: ThinkGeo.Core

This class represents the location of a piece of a label that may be drawn.

public class LabelInformation

Inheritance ObjectLabelInformation

Remarks:

This class is used within the labeling logic, specifically in the labeling candidate. The object may represent an entire label or, in the case of a label spline, a single character in the label.

Properties

PositionInScreenCoordinates

This property gets and sets the position of a piece of a label, in screen coordinates.

public ScreenPointF PositionInScreenCoordinates { get; set; }

Property Value

ScreenPointF

        This property gets the position of a piece of a label, in screen
        coordinates.

Remarks:

None

Text

This property gets and sets the text of the label.

public string Text { get; set; }

Property Value

String
This property gets the text of the label.

Remarks:

This may be the entire label text or a single character.

RotationAngle

This property gets and sets the angle of rotation for the label.

public double RotationAngle { get; set; }

Property Value

Double
This property gets the angle of rotation for the label.

Remarks:

This could be the rotation of the entire label text, a single character, or a set of characters.

Constructors

LabelInformation()

This is the constructor for the class.

public LabelInformation()

Remarks:

If you use this constructor, you should set the various properties manually.

LabelInformation(ScreenPointF, String, Double)

This is the constructor for the class.

public LabelInformation(ScreenPointF positionInScreenCoordinates, string text, double rotationAngle)

Parameters

positionInScreenCoordinates ScreenPointF
This parameter is the position of the label that may draw.

text String
This parameter is the text for the label.

rotationAngle Double
This parameter is the angle of rotation for the label.

Remarks:

None