Gets or sets the presentations current slide.
Namespace:
ESRI.ArcGISExplorer.Application
Assembly:
ESRI.ArcGISExplorer.Application (in ESRI.ArcGISExplorer.Application.dll) Version: 2.0.0.900 (2.0.0.900)
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#
CopyVB.NET

// 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.");

' 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
See Also
Relate Topics:
PresentationMode Property
PresentationOptions Property
Slides Property
SlideTitle Property
PresentationMode Property
PresentationOptions Property
Slides Property
SlideTitle Property
Created by Atop CHM to web converter,© 2009 all right reserved.