Gets the visible MapItems associated with this slide.
Namespace:
ESRI.ArcGISExplorer.MappingAssembly: ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: 2.0.0.1500 (2.0.0.1500)
Syntax
C# |
---|
public ReadOnlyCollection<MapItem> VisibleItems { get; } |
Visual Basic (Declaration) |
---|
Public ReadOnly Property VisibleItems As ReadOnlyCollection(Of MapItem) |
Field Value
A MapItemCollection containing the MapItems that are visible for the slide.Remarks
When you create a slide using the CaptureSlide()()()
method on Presentation, the set of MapItems that are visible in the Map
are recorded as the slide's VisibleItems. When the slide is set as the CurrentSlide,
the VisibleItems are made visible in the map and all other MapItems are made not visible.
Examples
The code below shows how you can get the visible MapItems for the current slide and list out their names.
CopyC#
Slide slide = ESRI.ArcGISExplorer.Application.Application.Presentation.CurrentSlide; System.Diagnostics.Debug.WriteLine("There are " + slide.VisibleItems.Count.ToString() + " visible items:"); foreach (MapItem mapItem in slide.VisibleItems) System.Diagnostics.Debug.WriteLine(mapItem.Name);
CopyVB.NET
Dim slide As Slide = ESRI.ArcGISExplorer.Application.Application.Presentation.CurrentSlide System.Diagnostics.Debug.WriteLine("There are " & slide.VisibleItems.Count & " visible items:") For Each mapItem As MapItem In slide.VisibleItems System.Diagnostics.Debug.WriteLine(mapItem.Name) Next