Skip to content

WorldLabelingCandidate

Namespace: ThinkGeo.Core

This class represents a candidate with world center point information for labeling.

public class WorldLabelingCandidate : LabelingCandidate

Inheritance ObjectLabelingCandidateWorldLabelingCandidate

Remarks:

This class is used in the labeling system. We keep track of every potential label in this class as it goes through the labeling rules.

Properties

CenterPointInWorldCoordinates

This property gets or sets the Center Point position in world Coordinate system.

public PointShape CenterPointInWorldCoordinates { get; set; }

Property Value

PointShape

OriginalText

This property gets and sets the original text for the label.

public string OriginalText { get; set; }

Property Value

String
This property gets the original text for the label.

Remarks:

None

ScreenArea

This property gets and sets the screen area that encompasses the label.

public PolygonShape ScreenArea { get; set; }

Property Value

PolygonShape
This property gets the screen area that encompasses the label.

Remarks:

None

CenterPointInScreenCoordinate

This property gets and sets the center point for the center of the label.

public ScreenPointF CenterPointInScreenCoordinate { get; set; }

Property Value

ScreenPointF
This property gets the center point for the center of the label.

Remarks:

None

LabelInformation

This property gets and sets the label information for this label.

public Collection<LabelInformation> LabelInformation { get; }

Property Value

Collection<LabelInformation>
This property gets the label information for this label.

Remarks:

None

Constructors

WorldLabelingCandidate()

This is a default constructor for the class.

public WorldLabelingCandidate()

Remarks:

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

WorldLabelingCandidate(String)

This is a constructor for the class.

public WorldLabelingCandidate(string originalText)

Parameters

originalText String

        This parameter represents the text of the label before it is potentially
        modified.

Remarks:

None

WorldLabelingCandidate(String, PointShape)

This is a constructor for the class.

public WorldLabelingCandidate(string originalText, PointShape centerPointInWorldCoordinates)

Parameters

originalText String

        This parameter represents the text of the label before it is potentially
        modified.

centerPointInWorldCoordinates PointShape

        This parameter is the center of the polygon (in world coordinates) representing the area to
        be labeled.

Remarks:

None