|
tkLabelAlignment | Alignment [get, set] |
| Gets or sets the horizontal and vertical alignment of labels. More...
|
|
bool | Enabled [get, set] |
| Gets or sets the value which indicates whether the category will be used in the process of shapefile drawing. More...
|
|
string | Expression [get, set] |
| Gets or sets expression which defines shapes that belong to this category. More...
|
|
bool | FontBold [get, set] |
| Gets or sets a boolean value which indicates whether font is bold. More...
|
|
uint | FontColor [get, set] |
| Gets or sets font color of labels. More...
|
|
uint | FontColor2 [get, set] |
| Gets or sets the second font color More...
|
|
tkLinearGradientMode | FontGradientMode [get, set] |
| Gets or sets the gradient for the font of labels. More...
|
|
bool | FontItalic [get, set] |
| Gets or sets a boolean value which indicates whether font is italic. More...
|
|
string | FontName [get, set] |
| Gets or sets font name to draw labels with. More...
|
|
uint | FontOutlineColor [get, set] |
| Gets or sets the outline color of the font. More...
|
|
bool | FontOutlineVisible [get, set] |
| Gets or sets a boolean value which indicates whether outline of the font is visible. More...
|
|
int | FontOutlineWidth [get, set] |
| Gets or sets the width in pixels of the font outline More...
|
|
int | FontSize [get, set] |
| Gets or sets the size of the font More...
|
|
int | FontSize2 [get, set] |
| Gets or sets the maximum font size fo the category. More...
|
|
bool | FontStrikeOut [get, set] |
| Gets or sets a boolean value which indicates whether font is striked out. More...
|
|
int | FontTransparency [get, set] |
| Gets or sets the transparency of the font. Values from 0 (opaque) to 255 (transparent) are accepted. More...
|
|
bool | FontUnderline [get, set] |
| Gets or sets a boolean value which indicates whether the font is underlined. More...
|
|
uint | FrameBackColor [get, set] |
| Gets or sets the back color of the frame. More...
|
|
uint | FrameBackColor2 [get, set] |
| Gets or sets the end color of the frame gradient. More...
|
|
tkLinearGradientMode | FrameGradientMode [get, set] |
| Gets or sets the gradient mode for the label's frame. More...
|
|
uint | FrameOutlineColor [get, set] |
| Gets or set the outline color of the label's frame. More...
|
|
tkDashStyle | FrameOutlineStyle [get, set] |
| Gets or sets the outline color of the label's frame. More...
|
|
int | FrameOutlineWidth [get, set] |
| Gets or sets the width of the label's frame outline. More...
|
|
int | FramePaddingX [get, set] |
| Gets or sets the horizontal distance from text to the border of label's frame More...
|
|
int | FramePaddingY [get, set] |
| Gets or sets the vertical distance from text to the border of label's frame More...
|
|
int | FrameTransparency [get, set] |
| Gets or sets the transparency of the label's frame. Values from 0 to 255 are accepted. More...
|
|
tkLabelFrameType | FrameType [get, set] |
| Gets or sets the shape of the label's frame More...
|
|
bool | FrameVisible [get, set] |
| Gets or sets a boolean value which indicates whether label's frame will be drawn. More...
|
|
uint | HaloColor [get, set] |
| Gets or sets the color of the halo around the text of the label. More...
|
|
int | HaloSize [get, set] |
| Gets or sets the width of the halo around the text of the label. More...
|
|
bool | HaloVisible [get, set] |
| Gets or sets a boolean value which indicates whether a halo around text will be drawn. More...
|
|
tkLabelAlignment | InboxAlignment [get, set] |
| Gets or sets the alignment of text within label's frame. More...
|
|
tkLineLabelOrientation | LineOrientation [get, set] |
| Gets or sets the orientation of the label relative to the polyline it belongs to. More...
|
|
object | MaxValue [get, set] |
| Gets or sets the maximum value for the specified label category in case an LabelCategory.Expression contains a range of values. More...
|
|
object | MinValue [get, set] |
| Gets or sets the minimum value for the specified label category in case an LabelCategory.Expression contains a range of values. More...
|
|
string | Name [get, set] |
| Gets or sets the name of the category. The names must not be unique. More...
|
|
double | OffsetX [get, set] |
| Gets or sets the horizontal offset in pixels which is used to draw labels. More...
|
|
int | OffsetXField [get, set] |
| Gets or sets the field index to use for the horizontal offset in pixels which is used to draw labels. More...
|
|
double | OffsetY [get, set] |
| Gets or sets the vertical offset in pixels which is used to draw labels. More...
|
|
int | OffsetYField [get, set] |
| Gets or sets the field index to use for the vertical offset in pixels which is used to draw labels. More...
|
|
int | Priority [get, set] |
| The property isn't implemented. More...
|
|
uint | ShadowColor [get, set] |
| Gets or sets a color of shadow for the text of the label. More...
|
|
int | ShadowOffsetX [get, set] |
| Gets or sets the horizontal distance between text of the label and its shadow. More...
|
|
int | ShadowOffsetY [get, set] |
| Gets or sets the horizontal distance between text of the label and its shadow. More...
|
|
bool | ShadowVisible [get, set] |
| Gets or sets a boolean value which indicates whether shadow of the label will be visible. More...
|
|
bool | Visible [get, set] |
| Gets or sets a boolean value which indicates whether shapes that belongs to the category will be visible. More...
|
|
Represents visualization options for labels displayed on the map.
Graph description
- The following elements of label appearance can be set:
- the text itself;
- the outline of text;
- the halo around the text;
- the shadow of the text;
- frame around text.
Here are properties that define the appearance of each of the listed elements. For good visual experience it usually makes sense not to show all the decorations at once, but choose either halo, shadow, outline or frame. The main purpose of all these decorations is to provide some contrast for the text of labels, as parts of map may have the same color as the text of labels. Halo and frame are usually the best candidates for it.
Here is code that demonstrates how to set some of these options.
Represents visualization options for labels displayed on the map.
Definition: LabelCategory.cs:115
int HaloSize
Gets or sets the width of the halo around the text of the label.
Definition: LabelCategory.cs:389
bool HaloVisible
Gets or sets a boolean value which indicates whether a halo around text will be drawn.
Definition: LabelCategory.cs:398
string FontName
Gets or sets font name to draw labels with.
Definition: LabelCategory.cs:203
bool FrameVisible
Gets or sets a boolean value which indicates whether label's frame will be drawn.
Definition: LabelCategory.cs:371
int FontSize
Gets or sets the size of the font
Definition: LabelCategory.cs:242
- There are properties which specify the position of each label relative to its base point set by Label.x, Label.y:
- alignment;
- vertical and horizontal offset;
- orientation relative to the line (it is used in the process of label generation only).
And properties which define position of text relative to frame border:
- InboxAlignment;
- FramePaddingX;
- FramePaddingY.
Here are some examples of their usage.
tkLabelAlignment
The available alignments for the labels. Defines both horizontal and vertical alignment.
Definition: Enumerations.cs:786
tkLabelAlignment InboxAlignment
Gets or sets the alignment of text within label's frame.
Definition: LabelCategory.cs:408
tkLabelAlignment Alignment
Gets or sets the horizontal and vertical alignment of labels.
Definition: LabelCategory.cs:121
int FramePaddingX
Gets or sets the horizontal distance from text to the border of label's frame
Definition: LabelCategory.cs:334
double OffsetY
Gets or sets the vertical offset in pixels which is used to draw labels.
Definition: LabelCategory.cs:468
double OffsetX
Gets or sets the horizontal offset in pixels which is used to draw labels.
Definition: LabelCategory.cs:457
See Visualization categories for information on how to map particular labels to the visualization category.
- New API 4.8:
- Added in version 4.8
- Examples
- ImageLabels.cs, and LabelSelection.cs.