Represents a slide in a Presentation.

Namespace:  ESRI.ArcGISExplorer.Mapping

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

Syntax

C#
public sealed class Slide
Visual Basic (Declaration)
Public NotInheritable Class Slide

Remarks

A map can contain a collection of slides that highlight the important aspects of the map's content that you want to communicate to others. Each slide represents the state of the map when it was captured, specifically, a Viewpoint, collection of MapItem that are visible, a Basemap and can also include a SlideTitle and visible popup window.

Use the CaptureSlide()()() method on the Presentation class to capture a new slide, and methods on the presentation's SlideCollection to add and remove slides to and from the presentation. You can play the slides in the presentation using methods and properties on the Presentation class, specifically MoveNextSlide()()(), MovePreviousSlide()()() and CurrentSlide.

Examples

The code below shows how you can zoom the MapDisplay to a viewpoint, set all the notes in the map to be visible and set a slide title for your slide, then capture the slide and add it to the end of the presentation's Slides collection.
CopyC#
// Create a new Viewpoint using target and observer points and zoom the map to the new Viewpoint
Viewpoint viewPoint = new Viewpoint(new ESRI.ArcGISExplorer.Geometry.Point(-91.0826412870161, 35.7746839405672, 2483239.782),
  new ESRI.ArcGISExplorer.Geometry.Point(-91.2019192964819, 36.8511359850097, 131.180));
ESRI.ArcGISExplorer.Application.Application.ActiveMapDisplay.ZoomTo(viewPoint);

// Get each Note in the map and set it to be visible
foreach (Note note in ESRI.ArcGISExplorer.Application.Application.ActiveMapDisplay.Map.GetMapItems<Note>())
  note.Graphic.Visible = true;

// Get the Presentation's current slide title and modify its text
SlideTitle slideTitle = ESRI.ArcGISExplorer.Application.Application.Presentation.SlideTitle;
slideTitle.Text = "All the notes";
ESRI.ArcGISExplorer.Application.Application.Presentation.SlideTitle = slideTitle;

// Capture a new slide and add it to the Presentation's slide collection
Slide newSlide = ESRI.ArcGISExplorer.Application.Application.Presentation.CaptureSlide();
ESRI.ArcGISExplorer.Application.Application.Presentation.Slides.Add(newSlide);
CopyVB.NET
' Create a new Viewpoint using target and observer points and zoom the map to the new Viewpoint
Dim viewPoint As New Viewpoint(New ESRI.ArcGISExplorer.Geometry.Point(-91.0826412870161, 35.7746839405672, 2483239.782), New ESRI.ArcGISExplorer.Geometry.Point(-91.2019192964819, 36.8511359850097, 131.18))
ESRI.ArcGISExplorer.Application.Application.ActiveMapDisplay.ZoomTo(viewPoint)

' Get each Note in the map and set it to be visible
For Each note As Note In ESRI.ArcGISExplorer.Application.Application.ActiveMapDisplay.Map.GetMapItems(Of Note)()
  note.Graphic.Visible = True
Next

' Get the Presentation's current slide title and modify its text
Dim slideTitle As SlideTitle = ESRI.ArcGISExplorer.Application.Application.Presentation.SlideTitle
slideTitle.Text = "All the notes"
ESRI.ArcGISExplorer.Application.Application.Presentation.SlideTitle = slideTitle

' Capture a new slide and add it to the Presentation's slide collection
Dim newSlide As Slide = ESRI.ArcGISExplorer.Application.Application.Presentation.CaptureSlide()
ESRI.ArcGISExplorer.Application.Application.Presentation.Slides.Add(newSlide)

Inheritance Hierarchy

System..::.Object

  ESRI.ArcGISExplorer.Mapping..::.Slide

See Also