Table of Contents

ThinkGeo.MapSuite.Core.TextStyle

Note: The page was created before Map Suite 10. Map Suite 10.0 organized many classes into new namespaces and assemblies as well as had a few minor breaks in compatibility. The majority of previously built code should work without modification assuming the new namespaces are added. For guidance on upgrading your existing code, please check out MapSuite 10 Upgrade Guide.

This class is used to label features on the map.

Inheritance Hierarchy

Members Summary

Public Constructors

TextStyle()

Remarks
Parameters

TextStyle(String,GeoFont,GeoSolidBrush)

Remarks
Parameters

Protected Constructors

Public Methods

CloneDeep()

Remarks
Return Value
Parameters

Draw(IEnumerable<Feature>,GeoCanvas,Collection<SimpleCandidate>,Collection<SimpleCandidate>)

Remarks
Return Value
Parameters

Draw(IEnumerable<BaseShape>,GeoCanvas,Collection<SimpleCandidate>,Collection<SimpleCandidate>)

Remarks
Return Value
Parameters

GetRequiredColumnNames()

Remarks
Return Value
Parameters

DrawSample(GeoCanvas,DrawingRectangleF)

Remarks
Return Value
Parameters

DrawSample(GeoCanvas)

Remarks
Return Value
Parameters

SaveStyle(String)

Remarks
Return Value
Parameters

SaveStyle(Stream)

Remarks
Return Value
Parameters

ToString()

Remarks
Return Value
Parameters

Equals(Object)

Remarks
Return Value
Parameters

GetHashCode()

Remarks
Return Value
Parameters

GetType()

Remarks
Return Value
Parameters

Protected Methods

DrawSampleCore(GeoCanvas,DrawingRectangleF)

Remarks
Return Value
Parameters

DrawCore(IEnumerable<Feature>,GeoCanvas,Collection<SimpleCandidate>,Collection<SimpleCandidate>)

Remarks
Return Value
Parameters

GetRequiredColumnNamesCore()

Remarks
Return Value
Parameters

FilterFeatures(IEnumerable<Feature>,GeoCanvas)

Remarks
Return Value
Parameters

FilterFeaturesCore(IEnumerable<Feature>,GeoCanvas)

Remarks
Return Value
Parameters

AbbreviateText(Feature,GeoCanvas)

Remarks
Return Value
Parameters

AbbreviateTextCore(Feature,GeoCanvas)

Remarks
Return Value
Parameters

GetLabelingCandidates(Feature,GeoCanvas)

Remarks
Return Value
Parameters

GetLabelingCandidateCore(Feature,GeoCanvas)

Remarks
Return Value
Parameters

CheckDuplicate(LabelingCandidate,GeoCanvas,Collection<SimpleCandidate>,Collection<SimpleCandidate>)

Remarks
Return Value
Parameters

CheckDuplicateCore(LabelingCandidate,GeoCanvas,Collection<SimpleCandidate>,Collection<SimpleCandidate>)

Remarks
Return Value
Parameters

CheckOverlapping(LabelingCandidate,GeoCanvas,Collection<SimpleCandidate>,Collection<SimpleCandidate>)

Remarks
Return Value
Parameters

CheckOverlappingCore(LabelingCandidate,GeoCanvas,Collection<SimpleCandidate>,Collection<SimpleCandidate>)

Remarks
Return Value
Parameters

GetLabelingCandidateForOnePolygon(PolygonShape,String,GeoCanvas)

Remarks
Return Value
Parameters

Format(String,BaseShape)

Remarks
Return Value
Parameters

FormatCore(String,BaseShape)

Remarks
Return Value
Parameters

OnFormatting(FormattingPositionStyleEventArgs)

Remarks
Return Value
Parameters

OnFormatted(FormattedPositionStyleEventArgs)

Remarks
Return Value
Parameters

CloneDeepCore()

Remarks
Return Value
Parameters

Finalize()

Remarks
Return Value
Parameters

MemberwiseClone()

Remarks
Return Value
Parameters

Public Properties

XOffsetInPixel

This property gets and sets the X pixel offset for drawing each feature.

Remarks

This property allows you to specify an X offset. When combined with a Y offset, it is useful to allow you to achieve effects such as drop shadows, etc. There also may be times when you need to modify the location of feature data so as to better align it with raster satellite data.

Return Value

YOffsetInPixel

This property gets and sets the Y pixel offset for drawing each feature.

Remarks

This property allows you to specify a Y offset. When combined with an X offset, it is useful to allow you to achieve effects such as drop shadows, etc. There also may be times when you need to modify the location of feature data so as to better align it with raster satellite data.

Return Value

FittingLineInScreen

This property gets and sets whether the labeler will try to fit the label as best as it can on the visible part of a line on the screen.

Remarks

A label will normally be displayed in the center of a line. If only a small piece of the line is visible on the screen, we cannot see it's label by default. If we set this property to ture though, the label will be displayed in the center of that piece in screen.

Return Value

FittingPolygonInScreen

This property gets and sets whether the labeler will try to fit the label as best as it can on the visible part of a polygon on the screen.

Remarks

A label will normally be displayed in the center of a polygon. If only a small piece of the polygon is visible on the screen, we cannot see it's label by default. If we set this property to ture though, the label will be displayed in the center of that piece in screen.

Return Value

CustomTextStyles

This property returns a collection of area styles allowing you to stack multiple area styles on top of each other.

Remarks

Using this collection, you can stack multiple area styles on top of each other. When we draw the features, we will draw them in order that they exist in the collection. You can use these stacks to create drop shadow effects, multiple colored outlines, etc.

Return Value

RotationAngle

This property gets and sets the rotation angle of the item being positioned.

Remarks

None

Return Value

TextFormat

This property gets and sets the format that will be applied to the text.

Remarks

With this property, you can apply formats to the text that is retrieved from the feature.

Return Value

NumericFormat

This property gets and sets the format that will be applied to the text which can be parsed to double type.

Remarks

With this property, you can apply formats to the text that is retrieved from the feature.

Return Value

DateFormat

This property gets and sets the format that will be applied to the text which can be parsed to DateTime type.

Remarks

With this property, you can apply formats to the text that is retrieved from the feature.

Return Value

TextSolidBrush

This property gets and sets the SolidBrush that will be used to draw the text.

Remarks

You can use this property to draw a solid color; however, if you need to use other brushes, you can access them through the Advanced property of this class.

Return Value

Font

This property gets and sets the font that will be used to draw the text.

Remarks

None

Return Value

HaloPen

This property gets and sets the halo pen you may use to draw a halo around the text.

Remarks

The halo pen allows you to draw a halo effect around the text, making it stand out more on a busy background.

Return Value

TextColumnName

This property gets and sets the column name in the data that you want to get the text from.

Remarks

This property is used when retrieving text from a feature. You will want to specify the name of the column that contains the text you want to draw.

Return Value

Mask

This property gets and sets the AreaStyle used to draw a mask behind the text.

Remarks

A mask is a plate behind the text that is rectangular and slightly larger than the width and height of the text. It allows the label to stand out well on a busy background. You can also try the HaloPen property instead of the mask, if the mask effect is too pronounced.

Return Value

MaskMargin

This property gets and sets the margin around the text that will be used for the mask.

Remarks

This determines how much larger the mask is than the text, in pixels.

Return Value

Advanced

This property gets the advanced properties of the class.

Remarks

The advanced properties have been consolidated in the Advanced property. This way, the standard options are more easily visible and the advanced options are hidden away.

Return Value

ForceHorizontalLabelForLine

This property gets and sets whether we should force horizontal labeling for lines.

Remarks

Normally, lines are labeled in the direction of the line. There may be some cases, however, when you want to have the line labeled horizontally regardless of the line's direction. In such a case, you can set this property to force the lines to be labeled horizontally.

Return Value

SplineType

Gets or sets the SplineType for labeling.

Remarks

N/A

Return Value

DrawingLevel

Gets or sets the DrawingLavel for this style.

Remarks

N/A

Return Value

LabelPositions

Gets a value represents a keyValuepair which is a feature id and label position of the feature

Remarks

N/A

Return Value

PolygonLabelingLocationMode

N/A

Remarks

N/A

Return Value

MaxNudgingInPixel

N/A

Remarks

N/A

Return Value

NudgingIntervalInPixel

N/A

Remarks

N/A

Return Value

BestPlacementSymbolWidth

N/A

Remarks

N/A

Return Value

BestPlacementSymbolHeight

N/A

Remarks

N/A

Return Value

AbbreviationDictionary

N/A

Remarks

N/A

Return Value

LeaderLineStyle

N/A

Remarks

N/A

Return Value

LeaderLineRule

N/A

Remarks

N/A

Return Value

LeaderLineMinimumLengthInPixels

N/A

Remarks

N/A

Return Value

GridSize

N/A

Remarks

N/A

Return Value

DuplicateRule

N/A

Remarks

N/A

Return Value

OverlappingRule

N/A

Remarks

N/A

Return Value

AllowLineCarriage

N/A

Remarks

N/A

Return Value

SuppressPartialLabels

N/A

Remarks

N/A

Return Value

ForceLineCarriage

N/A

Remarks

N/A

Return Value

FittingPolygon

N/A

Remarks

N/A

Return Value

LabelAllPolygonParts

N/A

Remarks

N/A

Return Value

LabelAllLineParts

N/A

Remarks

N/A

Return Value

FittingPolygonFactor

N/A

Remarks

N/A

Return Value

TextLineSegmentRatio

N/A

Remarks

N/A

Return Value

BestPlacement

N/A

Remarks

N/A

Return Value

PointPlacement

N/A

Remarks

N/A

Return Value

MaskType

N/A

Remarks

N/A

Return Value

Name

N/A

Remarks

N/A

Return Value

IsActive

N/A

Remarks

N/A

Return Value

RequiredColumnNames

N/A

Remarks

N/A

Return Value

Filters

N/A

Remarks

N/A

Return Value

Protected Properties

AllowSpline

N/A

Remarks

N/A

Return Value

IsDefault

N/A

Remarks

N/A

Return Value

FiltersCore

N/A

Remarks

N/A

Return Value

Public Events

Formatting N/A

Remarks

N/A

Event Arguments:FormattingPositionStyleEventArgs

Formatted N/A

Remarks

N/A

Event Arguments:FormattedPositionStyleEventArgs