ArcGIS Explorer Component Help |
Presentation..::.CurrentSlide Property |
Presentation Class Example See Also |
Gets or sets the presentations current slide.
Namespace:
ESRI.ArcGISExplorer.ApplicationAssembly: ESRI.ArcGISExplorer.Application (in ESRI.ArcGISExplorer.Application.dll) Version: 2.0.0.1500 (2.0.0.1500)
Syntax
C# |
---|
public Slide CurrentSlide { get; set; } |
Visual Basic (Declaration) |
---|
Public Property CurrentSlide As Slide |
Field Value
A slide representing the presentation's current slide.Remarks
Setting the current slide applies the slide's characteristics to the map and selects it in the slides window. This includes the visible items, the popup window and title. When a slide is made the current slide, the slide's SlideTitle is copied to the presentation's SlideTitle property.
If the presentation options AllowBasemapChange is true, setting the current slide will change the maps basemap to reflect the slide's basemap.
Examples
The code below demonstrates how to get a reference to the current slide and reports whether it includes a popup window.
CopyC#
// Get the CurrentSlide from the Presentation and verify its not null Slide slide = ESRI.ArcGISExplorer.Application.Application.Presentation.CurrentSlide; if (slide == null) return; // Get the PopupItem for the slide. If its null, then the slide doesn't display a popup MapItem popupItem = slide.PopupItem; if (popupItem != null) System.Diagnostics.Debug.WriteLine("The current slide includes a popup: " + popupItem.Name); else System.Diagnostics.Debug.WriteLine("The current slide does not include a popup.");
CopyVB.NET
' Get the CurrentSlide from the Presentation and verify its not null Dim slide As Slide = ESRI.ArcGISExplorer.Application.Application.Presentation.CurrentSlide If (slide Is Nothing) Then Return End If ' Get the PopupItem for the slide. If its Nothing, then the slide doesn't display a popup Dim popupItem As MapItem = slide.PopupItem If popupItem Is Nothing Then System.Diagnostics.Debug.WriteLine("The current slide does not include a popup.") Else System.Diagnostics.Debug.WriteLine("The current slide includes a popup: " & popupItem.Name) End If