|
ShapeDrawingOptions | Clone () |
| Creates a new instance of ShapeDrawingOptions class by copying all the properties. More...
|
|
void | Deserialize (string newVal) |
| Restores the state of object from the string. More...
|
|
bool | DrawLine (IntPtr hdc, float x, float y, int Width, int Height, bool drawVertices, int clipWidth, int clipHeight, uint BackColor, byte backAlpha) |
| Draws a line using the stored options on specified device context. More...
|
|
bool | DrawLineVB (int hdc, float x, float y, int Width, int Height, bool drawVertices, int clipWidth, int clipHeight, uint BackColor, byte backAlpha) |
| Draws a line using the stored options on the specified device context. More...
|
|
bool | DrawPoint (IntPtr hdc, float x, float y, int clipWidth, int clipHeight, uint BackColor, byte backAlpha) |
| Draws a point symbol using the stored options on the specified device context. More...
|
|
bool | DrawPointVB (int hdc, float x, float y, int clipWidth, int clipHeight, uint BackColor, byte backAlpha) |
| Draws a point symbol using the stored options on the specified device context. More...
|
|
bool | DrawRectangle (IntPtr hdc, float x, float y, int Width, int Height, bool drawVertices, int clipWidth, int clipHeight, uint BackColor, byte backAlpha) |
| Draws a rectangle using the stored options on the specified device context. More...
|
|
bool | DrawRectangleVB (int hdc, float x, float y, int Width, int Height, bool drawVertices, int clipWidth, int clipHeight, uint BackColor, byte backAlpha) |
| Draws a rectangle using the stored options on the specified device context. More...
|
|
bool | DrawShape (IntPtr hdc, float x, float y, Shape Shape, bool drawVertices, int clipWidth, int clipHeight, uint BackColor, byte backAlpha) |
| Draws a shape using the stored options on the specified device context. More...
|
|
bool | DrawShapeVB (int hdc, float x, float y, Shape Shape, bool drawVertices, int clipWidth, int clipHeight, uint BackColor, byte backAlpha) |
| Draws a shape using the stored options on the specified device context. More...
|
|
string | get_ErrorMsg (int ErrorCode) |
| Gets the text description of the specified error code. More...
|
|
string | Serialize () |
| Saves the state of the class to the string More...
|
|
void | SetDefaultPointSymbol (tkDefaultPointSymbol symbol) |
| Sets a predefined combination of properties to set the commonly used symbols. More...
|
|
void | SetGradientFill (uint Color, short range) |
| Provides a convenient way to set colors of the gradient fill. More...
|
|
|
bool | AlignPictureByBottom [get, set] |
| Gets or sets a value indicating whether hot spot of icons should be position at the bottom center. When set to false the hotspot will be at the center of icon. More...
|
|
tkVectorDrawingMode | DrawingMode [get, set] |
| The graphical mode to be used to render symbology. More...
|
|
bool | DynamicVisibility [get, set] |
| Gets or sets a value indicating whether the category will be displayed only for scale range specified by MinVisibleScale and MaxVisibleScale properties More...
|
|
uint | FillBgColor [get, set] |
| Gets or sets the background color of the polygon fill. More...
|
|
bool | FillBgTransparent [get, set] |
| Gets or sets the value which indicates whether a background will be drawn when ShapeDrawingOptions.FillType is set to ftHatch. More...
|
|
uint | FillColor [get, set] |
| Gets or sets the fill color of the shape. More...
|
|
uint | FillColor2 [get, set] |
| Gets or sets the end color of the gradient fill. More...
|
|
tkGradientBounds | FillGradientBounds [get, set] |
| Gets or sets the the value which defines the bounds of the gradient fill. More...
|
|
tkGradientType | FillGradientType [get, set] |
| The type of the gradient to draw polygon fill of the point symbols and polygon shapes. More...
|
|
tkGDIPlusHatchStyle | FillHatchStyle [get, set] |
| The hatch style of the fill for point symbols and polygon shapes. More...
|
|
double | FillRotation [get, set] |
| Gets or sets the angle of rotation of the polygon fill in degrees. More...
|
|
float | FillTransparency [get, set] |
| Gets or sets the transparency of the fill. Ranges from 0 (transparent) to 255 (opaque). More...
|
|
tkFillType | FillType [get, set] |
| The type of the polygon fill. See the enumeration for details. More...
|
|
bool | FillVisible [get, set] |
| Gets or sets the value which indicates whether the fill is visible. More...
|
|
string | FontName [get, set] |
| The name of the font to use for drawing point symbols when ShapeDrawingOptions.PointType is equal to pstCharacter. More...
|
|
tkLabelFrameType | FrameType [get, set] |
| Gets or sets type of frame to be displayed around point when ShapeDrawingOptions.PointShape is set to ptSymbolFontCharacter. More...
|
|
bool | FrameVisible [get, set] |
| Gets or sets a value indicating whether a frame will be drawn around point when ShapeDrawingOptions.PointShape is set to ptSymbolFontCharacter. More...
|
|
int | LastErrorCode [get] |
| Retrieves the numeric code of the last error that took place in the instance class. More...
|
|
uint | LineColor [get, set] |
| Gets or sets the line color of the shapes. More...
|
|
LinePattern | LinePattern [get, set] |
| Gets or sets line pattern for rendering polyline shapefile. More...
|
|
tkDashStyle | LineStipple [get, set] |
| Gets or sets the line style of the shapes. More...
|
|
float | LineTransparency [get, set] |
| Gets or sets the transparency of lines. Ranges from 0 (transparent) to 255 (opaque). More...
|
|
bool | LineVisible [get, set] |
| Gets or sets the value which indicates whether lines will be visible while drawing shapes. More...
|
|
float | LineWidth [get, set] |
| Gets or sets the width of the lines to draw shapes. More...
|
|
double | MaxVisibleScale [get, set] |
| Gets or sets maximum map scale at which the category is visible when ShapeDrawingOptions.DynamicVisibility is set to true. More...
|
|
double | MaxVisibleZoom [get, set] |
| Gets or sets maximum map zoom at which the category is visible when ShapeDrawingOptions.DynamicVisibility is set to true. More...
|
|
double | MinVisibleScale [get, set] |
| Gets or sets minimum map scale at which the category is visible when ShapeDrawingOptions.DynamicVisibility is set to true. More...
|
|
double | MinVisibleZoom [get, set] |
| Gets or sets minimum map zoom at which the category is visible when ShapeDrawingOptions.DynamicVisibility is set to true. More...
|
|
Image | Picture [get, set] |
| Gets or sets the picture which will be used as texture brush (ShapeDrawingOptions.FillType = ftPicture) or point symbol (ShapeDrawingOptions.PointType = ptSymbolPicture). More...
|
|
double | PictureScaleX [get, set] |
| Gets or sets the coefficient for scaling picture horizontally. More...
|
|
double | PictureScaleY [get, set] |
| Gets or sets the coefficient for scaling picture vertically. More...
|
|
short | PointCharacter [get, set] |
| Get or sets the ANSI code of the text character to use as point symbol. More...
|
|
tkPointReflectionType | PointReflection [get, set] |
| Gets or sets the type of reflection to apply to the point symbol. More...
|
|
double | PointRotation [get, set] |
| Gets or sets the rotation of the point symbol in degrees. More...
|
|
double | PointRotationExpression [get, set] |
| Gets or sets an expression to calculate the rotation of the point symbol in degrees. When this is set it takes precedence over the PointRotation property. More...
|
|
tkPointShapeType | PointShape [get, set] |
| Gets or sets the predefined shape for the point symbol. More...
|
|
int | PointSidesCount [get, set] |
| Gets or sets the number of sides for some of the predefined symbols such as regular, star or cross. More...
|
|
float | PointSidesRatio [get, set] |
| Gets or sets the side ratio for some of the predefined point symbols such as regular, star and cross. More...
|
|
float | PointSize [get, set] |
| Gets or sets the size of the point symbol including predefined symbols, characters and pictures. More...
|
|
tkPointSymbolType | PointType [get, set] |
| Gets or sets the type of the point symbols. More...
|
|
string | Tag [get, set] |
| Gets or sets a string associated with the instance of class. Can store any information provided by developer. More...
|
|
bool | UseLinePattern [get, set] |
| Gets or set the value which indicates whether line pattern will be used to render polyline shapefile. More...
|
|
uint | VerticesColor [get, set] |
| Gets or sets the color of vertices for the shapes. More...
|
|
bool | VerticesFillVisible [get, set] |
| Gets or sets the value which indicates whether the fill for shape vertices will be drawn. More...
|
|
int | VerticesSize [get, set] |
| Gets or sets the size of the shapes's vertices More...
|
|
tkVertexType | VerticesType [get, set] |
| Gets or sets the type of shape vertices. More...
|
|
bool | VerticesVisible [get, set] |
| Gets or sets the value which indicates whether vertices of the shape will be visible. The default values is false. More...
|
|
bool | Visible [get, set] |
| Gets or sets the values which indicates whether shapes will be visible. More...
|
|
Holds the set of options for visualization of shapefiles.
Graph description
I. The class is used for rendering different types of shapefiles: point (multipoint), polyline, polygon. The set of options available for these types differ accordingly. The whole set options can be split into following groups:
- fill options;
- outline options;
- line pattern options;
- point symbol options;
- vertices options.
The table shows relation between shape types and the set of options available for them.
Shapefile type | Fill | Outline | Line pattern | Point symbols | Vertices |
Point, MultiPoint | + | + | - | + | - |
Polyline | - | + | + | - | + |
Polygon | + | + | - | - | + |
Below the listed sets of options will be described in more detail. Fill options and point symbols provides different types of symbology, like standard, hatch, gradient, texture for fill; and standard, font character, picture for point symbols.
1. Fill options. They are applicable for polygon, point and multipoint shapefiles. Use ShapeDrawingOptions.FillType to change the type of fill.
img.
Open(
"some_arguments");
tkMapColor
A list of named constants for some of the well-known colors.
Definition: Enumerations.cs:951
tkFillType
The type of shape fill.
Definition: Enumerations.cs:521
tkGradientBounds
Possible size of gradient for the shapefile layer.
Definition: Enumerations.cs:678
tkGDIPlusHatchStyle
The hatch style available for drawing of fill for polygons and point symbols.
Definition: Enumerations.cs:567
Represents an raster image of particular format which may be added to the map.
Definition: Image.cs:66
Holds the set of options for visualization of shapefiles.
Definition: ShapeDrawingOptions.cs:239
tkGDIPlusHatchStyle FillHatchStyle
The hatch style of the fill for point symbols and polygon shapes.
Definition: ShapeDrawingOptions.cs:510
tkFillType FillType
The type of the polygon fill. See the enumeration for details.
Definition: ShapeDrawingOptions.cs:539
bool FillBgTransparent
Gets or sets the value which indicates whether a background will be drawn when ShapeDrawingOptions....
Definition: ShapeDrawingOptions.cs:460
uint FillColor2
Gets or sets the end color of the gradient fill.
Definition: ShapeDrawingOptions.cs:481
tkGradientBounds FillGradientBounds
Gets or sets the the value which defines the bounds of the gradient fill.
Definition: ShapeDrawingOptions.cs:490
Image Picture
Gets or sets the picture which will be used as texture brush (ShapeDrawingOptions....
Definition: ShapeDrawingOptions.cs:635
uint FillColor
Gets or sets the fill color of the shape.
Definition: ShapeDrawingOptions.cs:471
Provides a functionality for accessing and editing ESRI shapefiles.
Definition: Shapefile.cs:72
ShapeDrawingOptions DefaultDrawingOptions
Gets or sets an instance of ShapeDrawingOptions class which holds default drawing options.
Definition: Shapefile.cs:111
A utils object provides access to a set of utility functions to perform a variety of tasks on other o...
Definition: Utils.cs:20
uint ColorByName(tkMapColor Name)
Returns the numeric representation for the specified color.
Definition: Utils.cs:40
bool Open(string ImageFileName, ImageType fileType, bool InRam, ICallback cBack)
Opens an image from file.
Definition: Image.cs:357
2. Point symbols. They are applicable for point (multipoint) shapefiles only. Use ShapeDrawingOptions.PointType to change the type of symbol.
img.
Open(
"some_arguments");
tkPointSymbolType
The available types of point symbols.
Definition: Enumerations.cs:1143
tkDefaultPointSymbol
The set of available point symbols. They represent macros for modification of several properties of t...
Definition: Enumerations.cs:460
tkPointShapeType
The available types of shapes for points when ShapeDrawingOptions.PointType is set to ptSymbolStandar...
Definition: Enumerations.cs:1101
int PointSidesCount
Gets or sets the number of sides for some of the predefined symbols such as regular,...
Definition: ShapeDrawingOptions.cs:712
tkPointShapeType PointShape
Gets or sets the predefined shape for the point symbol.
Definition: ShapeDrawingOptions.cs:702
double PointRotation
Gets or sets the rotation of the point symbol in degrees.
Definition: ShapeDrawingOptions.cs:671
void SetDefaultPointSymbol(tkDefaultPointSymbol symbol)
Sets a predefined combination of properties to set the commonly used symbols.
Definition: ShapeDrawingOptions.cs:760
string FontName
The name of the font to use for drawing point symbols when ShapeDrawingOptions.PointType is equal to ...
Definition: ShapeDrawingOptions.cs:558
tkPointSymbolType PointType
Gets or sets the type of the point symbols.
Definition: ShapeDrawingOptions.cs:741
short PointCharacter
Get or sets the ANSI code of the text character to use as point symbol.
Definition: ShapeDrawingOptions.cs:662
- Outline, line pattern and vertices. Outline options applicable for all shapefile types, line patterns - for polylines only, vertices - for polylines and polygons.
II. The drawing options for shapefile are split into:
- Default drawing options (Shapefile.DefaultDrawingOptions).
- Drawing options for shapefile categories (ShapefileCategory.DrawingOptions).
The shapes that doesn't belong to any visualization category will be painted with default options. To return the index of the category a shape belongs to, call Shapefile.get_ShapeCategory(). The value -1 means that default drawing options will be used.
for (int i = 0; i < 10; i++) {
sf.put_ShapeCategory(i, 0);
}
float LineWidth
Gets or sets the width of the lines to draw shapes.
Definition: ShapeDrawingOptions.cs:624
ShapefileCategory Add(string Name)
Creates a new visualization category, adds it to the list and returns its reference to the caller.
Definition: ShapefileCategories.cs:66
Represents a set of visualization options for shapefile layer.
Definition: ShapefileCategory.cs:47
ShapeDrawingOptions DrawingOptions
Gets or sets visualization options associated with the category.
Definition: ShapefileCategory.cs:52
ShapefileCategories Categories
Gets or sets an instance of ShapefileCategories class associated with the shapefile.
Definition: Shapefile.cs:81
The class also provides a set of methods to draw map legend on the device context other than AxMap: DrawShape(), DrawLine(), DrawPoint(), DrawRectangle().
- New API 4.8:
- Added in version 4.8
- Examples
- IntersectionLength.cs, MarkPoints.cs, and Segmentation.cs.