Specifies the options for controlling the visibility of the label associated with a Graphic or Note.

Namespace:  ESRI.ArcGISExplorer.Mapping

Assembly:  ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: 2.0.0.1500 (2.0.0.1500)

Syntax

C#
public enum LabelVisibility
Visual Basic (Declaration)
Public Enumeration LabelVisibility

Members

Member nameDescription
Hidden
The label is hidden.
Visible
The label is always visible, but any overlapping labels will not be displayed.
VisibleOnMouseOver
The label is visible but only when the mouse moves over the Graphic or Note.

Remarks

This enumeration is used by the LabelVisibility property on the Graphic class.

Version Information: This enum is supported from version 2.0.0.1500.

Examples

The code demonstrates how to use the LabelVisibility property set the labels of all point notes in the map to Visible.
CopyC#
ESRI.ArcGISExplorer.Mapping.MapDisplay disp = ESRI.ArcGISExplorer.Application.Application.ActiveMapDisplay;

//Iterate over all Notes in the map
foreach (Note mapNote in disp.Map.GetMapItems<Note>())
{
  //Check for Point Notes
  if (mapNote.Graphic.ShapeType == ShapeType.Point)
  {
    //Set the LabelVisibility to Visible so the labels are permanently displayed
    mapNote.Graphic.LabelVisibility = LabelVisibility.Visible;
  }
}
CopyVB.NET
Dim disp As ESRI.ArcGISExplorer.Mapping.MapDisplay = ESRI.ArcGISExplorer.Application.Application.ActiveMapDisplay
'Iterate over all Notes in the map
For Each mapNote As Note In disp.Map.GetMapItems(Of Note)()
  'Check for Point Notes
  If mapNote.Graphic.ShapeType = ShapeType.Point Then
    'Set the LabelVisibility to Visible so the labels are permanently displayed
    mapNote.Graphic.LabelVisibility = LabelVisibility.Visible
  End If
Next

See Also