PointBaseStyle¶
Namespace: ThinkGeo.Core
public abstract class PointBaseStyle : Style
Inheritance Object → Style → PointBaseStyle
Properties¶
DrawingLevel¶
public DrawingLevel DrawingLevel { get; set; }
Property Value¶
FillBrush¶
This property gets and sets the SolidBrush used to color the interior of the Symbol.
public GeoBrush FillBrush { get; set; }
Property Value¶
This property gets the SolidBrush used to color the interior of the
Symbol.
Remarks:
This brush is used to draw the interior of the symbol. It is only used if the PointType is Symbol. If you need a brush other than the SolidBrush, you should look in the advanced property of the class.
OutlinePen¶
This property gets and sets the SolidBrush used to draw the oultine of the Symbol.
public GeoPen OutlinePen { get; set; }
Property Value¶
GeoPen
This property gets the SolidBrush used to draw the outline of the Symbol.
Remarks:
This pen is used to draw the outline of the Symbol. By default the pen draws a transparent (invisible) color, which just leaves you with a fill.
SymbolSize¶
This property gets and sets the size of the symbol if the PointType is Symbol.
public float SymbolSize { get; set; }
Property Value¶
Single
This property gets the size of the symbol if the PointType is Symbol.
Remarks:
The allows you to make the symbol larger and smaller.
RotationAngle¶
This property gets and sets the angle of rotation for the drawing of the point.
public float RotationAngle { get; set; }
Property Value¶
Single
This property gets the angle of rotation for the drawing of the point.
Remarks:
This property controls the rotation of the bitmap, character or symbol, depending on the PointType.
XOffsetInPixel¶
This property gets and sets the X pixel offset for drawing each feature.
public float XOffsetInPixel { get; set; }
Property Value¶
Single
This property gets 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.
YOffsetInPixel¶
This property gets and sets the Y pixel offset for drawing each feature.
public float YOffsetInPixel { get; set; }
Property Value¶
Single
This property gets 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.
CustomPointStyles¶
This property returns a collection of area styles allowing you to stack multiple area styles on top of each other.
public Collection<PointBaseStyle> CustomPointStyles { get; }
Property Value¶
Collection<PointBaseStyle>
This property returns a collection of area styles.
Remarks:
Using this collection, you can stack multiple styles on top of each other. When we draw the feature, 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.
Name¶
This property gets and set the name of the style.
public string Name { get; set; }
Property Value¶
String
This property gets the name of the style.
Remarks:
This name is not used by the system; it is only for the developer. However, it can be used if you generate your own legend.
IsActive¶
This property gets and sets the active status of the style.
public bool IsActive { get; set; }
Property Value¶
Boolean
This property gets the active status of the style.
Remarks:
If the style is not active then it will not draw.
RequiredColumnNames¶
This property gets the collection of fields that are required for the style.
public Collection<string> RequiredColumnNames { get; }
Property Value¶
This property gets the collection of fields that are required for the
style.
Remarks:
This property gets the collection of fields that are required for the style. These are in addition to any other columns you specify in styles that inherit from this one. For example, if you have use a ValueStyle and it requires a column name for the value comparison, then that column does not need to be in this collection. You only use the RequiredColumnNames for columns you need beyond those required by specific inherited styles.
Filters¶
public Collection<string> Filters { get; }
Property Value¶
Methods¶
DrawSampleCore(GeoCanvas, DrawingRectangleF)¶
This method draws a sample feature on the view you provided.
protected void DrawSampleCore(GeoCanvas canvas, DrawingRectangleF drawingExtent)
Parameters¶
canvas
GeoCanvas
This parameter represents the view you want to draw the features on.
drawingExtent
DrawingRectangleF
Exceptions¶
ArgumentNullException
If you pass a null as the view, we will throw an ArgumentNullException.
InvalidOperationException
In the event you attempt to call this method when the GeoCanvas's IsDrawing mode is false, it will throw an InvalidOperationException.
Remarks:
This virtual method is called from the concrete public method Draw. In this method, we draw a sample style on the view you provided. This is typically used to display a legend or other sample area.
When implementing this virtual method, consider the view size and draw the sample image appropriately. You should keep in mind that the sample typically shows up on a legend.