ThinkGeo.MapSuite.Core.IconStyle
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 displays an icon with text from the data of the feature.
Inheritance Hierarchy
Members Summary
Public Constructors
IconStyle()
If you use this, then you should set the properties manually – such as the column name, font, solid brush and the image.
Parameters
IconStyle(String,String,GeoFont,GeoSolidBrush)
This constructor allows you to pass in the path to the icon, along with the column name, font and solid brush to use. This is the most commonly used constructor. If you need to use an image from a stream, then you should use the constructor that takes a GeoImage.
Parameters
IconStyle(GeoImage,String,GeoFont,GeoSolidBrush)
Parameters
Protected Constructors
Public Methods
CloneDeep()
Return Value
Parameters
Draw(IEnumerable<Feature>,GeoCanvas,Collection<SimpleCandidate>,Collection<SimpleCandidate>)
Return Value
Type:Void
Description:N/A
Parameters
Draw(IEnumerable<BaseShape>,GeoCanvas,Collection<SimpleCandidate>,Collection<SimpleCandidate>)
Return Value
Type:Void
Description:N/A
Parameters
GetRequiredColumnNames()
Return Value
Type:Collection<String>
Description:N/A
Parameters
DrawSample(GeoCanvas,DrawingRectangleF)
Return Value
Type:Void
Description:N/A
Parameters
DrawSample(GeoCanvas)
Return Value
Type:Void
Description:N/A
Parameters
ToString()
Return Value
Type:String
Description:N/A
Parameters
Equals(Object)
Return Value
Type:Boolean
Description:N/A
Parameters
obj
Type:Object
Description:N/A
GetHashCode()
Return Value
Type:Int32
Description:N/A
Parameters
GetType()
Return Value
Type:Type
Description:N/A
Parameters
Protected Methods
DrawSampleCore(GeoCanvas,DrawingRectangleF)
Return Value
Type:Void
Description:N/A
Parameters
DrawCore(IEnumerable<Feature>,GeoCanvas,Collection<SimpleCandidate>,Collection<SimpleCandidate>)
This overridden method is called from the concrete public method Draw. In this method, we take the features you passed in and draw them on the canvas you provided. Each style (based on its properties) may draw each feature differently. When overriding this method, consider each feature and its column data values. You can use the full power of the GeoCanvas to do the drawing. If you need column data for a feature, be sure to override the GetRequiredColumnNamesCore and add the columns you need to the collection. In many of the styles, we add properties to allow the user to specify which field they need; then, in the GetRequiredColumnNamesCore, we read that property and add it to the collection.
Return Value
Type:Void
Description:None
Parameters
GetLabelingCandidateCore(Feature,GeoCanvas)
This overridden method is called from the concrete public method GetLabelingCandidate. In this method, we determine if the feature passed in will be a candidate for drawing. If you have the grid method enabled, then we determine this by ensuring that only one label will be eligible per grid cell. In this way, we can ensure that labels always draw in the same place at the same scale.
Return Value
Parameters
Format(String,BaseShape)
Return Value
Type:String
Description:N/A
Parameters
text
Type:String
Description:N/A
FormatCore(String,BaseShape)
Return Value
Type:String
Description:N/A
Parameters
text
Type:String
Description:N/A
OnFormatting(FormattingPositionStyleEventArgs)
Return Value
Type:Void
Description:N/A
Parameters
OnFormatted(FormattedPositionStyleEventArgs)
Return Value
Type:Void
Description:N/A
Parameters
GetRequiredColumnNamesCore()
Return Value
Type:Collection<String>
Description:N/A
Parameters
FilterFeatures(IEnumerable<Feature>,GeoCanvas)
Return Value
Parameters
FilterFeaturesCore(IEnumerable<Feature>,GeoCanvas)
Return Value
Parameters
GetLabelingCandidates(Feature,GeoCanvas)
Return Value
Parameters
CheckDuplicate(LabelingCandidate,GeoCanvas,Collection<SimpleCandidate>,Collection<SimpleCandidate>)
Return Value
Type:Boolean
Description:N/A
Parameters
CheckDuplicateCore(LabelingCandidate,GeoCanvas,Collection<SimpleCandidate>,Collection<SimpleCandidate>)
Return Value
Type:Boolean
Description:N/A
Parameters
CheckOverlapping(LabelingCandidate,GeoCanvas,Collection<SimpleCandidate>,Collection<SimpleCandidate>)
Return Value
Type:Boolean
Description:N/A
Parameters
CheckOverlappingCore(LabelingCandidate,GeoCanvas,Collection<SimpleCandidate>,Collection<SimpleCandidate>)
Return Value
Type:Boolean
Description:N/A
Parameters
GetLabelingCandidateForOnePolygon(PolygonShape,String,GeoCanvas)
Return Value
Parameters
text
Type:String
Description:N/A
CloneDeepCore()
Return Value
Parameters
Finalize()
Return Value
Type:Void
Description:N/A
Parameters
MemberwiseClone()
Return Value
Type:Object
Description:N/A
Parameters
Public Properties
IconFilePathName
Return Value
IconImage
Return Value
IconImageScale
This property allows you to scale the image up and down depending on how large or small you want it. It can be changed dynamically, so you could change it at every scale level to resize the bitmap based on the current scale. A scale of 1 would be the original size, while a scale of 2 would double the size. A scale of .5 would reduce the size of the image by half, and so on.
Return Value
SuppressPartialLabels
This property provides a solution to the “cut off” label issue in Map Suite Web Edition and Desktop Edition, which occurs when multiple tiles exist. When you set this property to true, any labels outside of the current extent will not be drawn.
Return Value
XOffsetInPixel
Return Value
YOffsetInPixel
Return Value
FittingLineInScreen
Return Value
FittingPolygonInScreen
Return Value
CustomTextStyles
Return Value
RotationAngle
Return Value
TextFormat
Return Value
NumericFormat
Return Value
DateFormat
Return Value
TextSolidBrush
Return Value
Font
Return Value
HaloPen
Return Value
TextColumnName
Return Value
Mask
Return Value
MaskMargin
Return Value
Advanced
Return Value
ForceHorizontalLabelForLine
Return Value
SplineType
Return Value
DrawingLevel
Return Value
LabelPositions
Return Value
PolygonLabelingLocationMode
Return Value
GridSize
Return Value
DuplicateRule
Return Value
OverlappingRule
Return Value
AllowLineCarriage
Return Value
ForceLineCarriage
Return Value
FittingPolygon
Return Value
LabelAllPolygonParts
Return Value
LabelAllLineParts
Return Value
FittingPolygonFactor
Return Value
TextLineSegmentRatio
Return Value
BestPlacement
Return Value
PointPlacement
Return Value
MaskType
Return Value
Name
Return Value
IsActive
Return Value
RequiredColumnNames
Return Value
Filters
Return Value
Protected Properties
IsStyleDefault
Return Value
AllowSpline
Return Value
IsDefault
Return Value
FiltersCore
Return Value
Public Events
Formatting