Labels visibility

Properties

bool Labels.AvoidCollisions [get, set]
 Gets or sets the value which indicates whether a routine for preventing of label overlaps will be used. More...
 
int Labels.CollisionBuffer [get, set]
 Gets or sets the value which affects the collision avoidance routine. Two labels are considered overlapping when the distance between their bounding rectangles is less then this value. More...
 
bool Labels.DynamicVisibility [get, set]
 Gets or sets the value which turns the dynamic visibility on or off. More...
 
double Labels.MaxVisibleScale [get, set]
 Gets or sets the maximum scale at which labels are visible on the map. More...
 
int Labels.MaxVisibleZoom [get, set]
 Gets or sets the maximum zoom at which labels are visible on the map. More...
 
int Labels.MinDrawingSize [get, set]
 Gets or sets the minimum size of the shape in pixels to be labelled at the current map scale. More...
 
double Labels.MinVisibleScale [get, set]
 Get or sets the minimum scale at which labels are visible on the map. More...
 
int Labels.MinVisibleZoom [get, set]
 Gets or sets the minimum zoom at which labels are visible on the map. More...
 
bool Labels.RemoveDuplicates [get, set]
 Gets or sets the value which indicates whether labels with the same text should be drawn. More...
 
bool Labels.UseWidthLimits [get, set]
 Is not implemented. More...
 
string Labels.VisibilityExpression [get, set]
 Gets or sets an expression which defines what shapes should be labelled on the map. More...
 
bool Labels.Visible [get, set]
 Gets or sets the value which indicates whether the labels will be visible on the map. More...
 

Detailed Description

Here is list of properties and methods which affect visibility of labels. This module is a part of the documentation of Labels class.

dot_inline_dotgraph_24.png

Graph description

Properties

◆ AvoidCollisions

bool Labels.AvoidCollisions
getset

Gets or sets the value which indicates whether a routine for preventing of label overlaps will be used.

When set to true overlapping labels won't be drawn.

◆ CollisionBuffer

int Labels.CollisionBuffer
getset

Gets or sets the value which affects the collision avoidance routine. Two labels are considered overlapping when the distance between their bounding rectangles is less then this value.

See also
Labels.AvoidCollisions

◆ DynamicVisibility

bool Labels.DynamicVisibility
getset

Gets or sets the value which turns the dynamic visibility on or off.

When set to true, labels will be visible only in the range of scales set by Labels.MinVisibleScale and Labels.MinVisibleScale.

◆ MaxVisibleScale

double Labels.MaxVisibleScale
getset

Gets or sets the maximum scale at which labels are visible on the map.

See also
Labels.DynamicVisibility, AxMap.CurrentScale

◆ MaxVisibleZoom

int Labels.MaxVisibleZoom
getset

Gets or sets the maximum zoom at which labels are visible on the map.

◆ MinDrawingSize

int Labels.MinDrawingSize
getset

Gets or sets the minimum size of the shape in pixels to be labelled at the current map scale.

◆ MinVisibleScale

double Labels.MinVisibleScale
getset

Get or sets the minimum scale at which labels are visible on the map.

See also
Labels.DynamicVisibility, AxMap.CurrentScale

◆ MinVisibleZoom

int Labels.MinVisibleZoom
getset

Gets or sets the minimum zoom at which labels are visible on the map.

◆ RemoveDuplicates

bool Labels.RemoveDuplicates
getset

Gets or sets the value which indicates whether labels with the same text should be drawn.

When set to true only the labels with unique text will be drawn on map. The choice of label to draw depends on their position in the list and the fact of belonging to the visualization category.

◆ UseWidthLimits

bool Labels.UseWidthLimits
getset

Is not implemented.

◆ VisibilityExpression

string Labels.VisibilityExpression
getset

Gets or sets an expression which defines what shapes should be labelled on the map.

Applicable only to the instances of the Labels class associated with shapefile, i.e. obtained by Shapefile.Labels property.

Labels lb = new Labels();
lb.VisibilityExpression = "[Area] > 100 and [population] > 100000";

◆ Visible

bool Labels.Visible
getset

Gets or sets the value which indicates whether the labels will be visible on the map.