|
int | Category [get, set] |
| The index of visualization category the label belongs to. More...
|
|
bool | IsDrawn [get] |
| Gets a boolean value which indicates whether the label was drawn at the current extents of the map. More...
|
|
double | Rotation [get, set] |
| Gets or sets the angle of label rotation in degrees. Positive values set clockwise rotation, negative - counter-clockwise. More...
|
|
Extents | ScreenExtents [get] |
| Gets the extents the label occupies on the map (in pixels). More...
|
|
string | Text [get, set] |
| Gets or sets the text of the label. More...
|
|
bool | Visible [get, set] |
| Gets or sets a boolean value which indicates whether the label is visible. More...
|
|
double | x [get, set] |
| Gets or sets the horizontal position of the label in map coordinates. More...
|
|
double | y [get, set] |
| Gets or sets the vertical position of the label in map coordinates. More...
|
|
Represents a single label on the map.
Graph description
Multipart shapes can have separate labels for every part. Each of such labels is represented by the instance of Label class. Labels added to the map can be accessed via Labels.get_Label() property. It's not recommended to store instances of this class retrieved from the map after the layer they belong to was removed.
This code demonstrate how to move the label for a shape with a given index.
int shapeIndex = 10;
if (label != null)
{
Debug.Print(
"The label is drawn: " + label.
IsDrawn.ToString());
Debug.Print(
"The text of the label: " + label.
Text);
map.Redraw();
}
else {
Debug.Print(string.Format("The chart with index {0} doesn't exists", shapeIndex));
}
Represents a single label on the map.
Definition: LabelClass.cs:65
double y
Gets or sets the vertical position of the label in map coordinates.
Definition: LabelClass.cs:137
bool IsDrawn
Gets a boolean value which indicates whether the label was drawn at the current extents of the map.
Definition: LabelClass.cs:82
string Text
Gets or sets the text of the label.
Definition: LabelClass.cs:109
bool Visible
Gets or sets a boolean value which indicates whether the label is visible.
Definition: LabelClass.cs:119
double x
Gets or sets the horizontal position of the label in map coordinates.
Definition: LabelClass.cs:128
Provides a functionality for accessing and editing ESRI shapefiles.
Definition: Shapefile.cs:72
Labels Labels
Gets or sets the instance of the Labels class associated with the shapefile.
Definition: Shapefile.cs:184
Label get_Label(int Index, int Part)
Gets label with the specified index.
Definition: Labels.cs:574
- New API 4.8:
- Added in version 4.8
- Examples
- LabelSelection.cs.