Skip to content

SimpleCandidate

Namespace: ThinkGeo.Core

This class stores simple label information used in the PositionStyle.

public class SimpleCandidate

Inheritance objectSimpleCandidate

Remarks:

This class is used in the PositionStyle for storing simple label information. It has a limited scope.

Properties

OriginalText

This property gets and sets the text for the label.

public string OriginalText { get; set; }

Property Value

string
This property gets the text for the label.

Remarks:

None

SimplePolygonInScreenCoordinate

This property gets and sets the polygon in screen coordinates that represents the area of the label.

public PolygonShape SimplePolygonInScreenCoordinate { get; set; }

Property Value

PolygonShape

        This property gets the polygon in screen coordinates that represents the area of
        the label.

Remarks:

None

EnvelopeInScreenCoordinate

Gets or sets the rectangle in screen coordinates that bounds the label.

public Envelope EnvelopeInScreenCoordinate { get; set; }

Property Value

Envelope

Constructors

SimpleCandidate()

This is a constructor for the class.

public SimpleCandidate()

Remarks:

If you use this constructor, then you need to manually set the properties necessary for this class.

SimpleCandidate(string, Envelope)

This is a constructor for the class.

public SimpleCandidate(string originalText, Envelope envelopeInScreenCoordinate)

Parameters

originalText string
This parameter is the text for the label.

envelopeInScreenCoordinate Envelope
Polygon in screen coordinates representing the label area.

Remarks:

None

SimpleCandidate(string, PolygonShape)

Initializes a new instance of the SimpleCandidate class.

public SimpleCandidate(string originalText, PolygonShape simplePolygonInScreenCoordinate)

Parameters

originalText string

simplePolygonInScreenCoordinate PolygonShape