Class PointBaseStyle
public abstract class PointBaseStyle : Style
- Inheritance
-
PointBaseStyle
- Derived
- Inherited Members
Constructors
PointBaseStyle()
protected PointBaseStyle()
PointBaseStyle(GeoBrush, int)
protected PointBaseStyle(GeoBrush symbolBrush, int symbolSize)
Parameters
PointBaseStyle(GeoBrush, GeoPen, int)
protected PointBaseStyle(GeoBrush symbolBrush, GeoPen symbolPen, int symbolSize)
Parameters
Properties
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.
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
- GeoBrush
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.
RotationAngle
This property gets and sets the angle of rotation for the drawing of the point.
public float RotationAngle { get; set; }
Property Value
- float
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.
SymbolSize
This property gets and sets the size of the symbol if the PointType is Symbol.
public float SymbolSize { get; set; }
Property Value
- float
This property gets the size of the symbol if the PointType is Symbol.
Remarks
The allows you to make the symbol larger and smaller.
XOffsetInPixel
This property gets and sets the X pixel offset for drawing each feature.
public float XOffsetInPixel { get; set; }
Property Value
- float
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
- float
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.
Methods
DrawSampleCore(GeoCanvas, DrawingRectangleF)
This method draws a sample feature on the view you provided.
protected override void DrawSampleCore(GeoCanvas canvas, DrawingRectangleF drawingExtent)
Parameters
canvas
GeoCanvasThis parameter represents the view you want to draw the features on.
drawingExtent
DrawingRectangleF
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.
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.