Assembly: ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: 18.104.22.1680 (22.214.171.1240)
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.
You can add new slides to the collection using the Add method. If you want to insert a slide at a specific location in the collection, you can use the Insert method. To remove items, you can use either the Remove method or the RemoveAt method if you know where the slide is located in the collection. The Clear method enables you to remove all slides from the collection instead of using the Remove method to remove a single slide at a time.
// 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);
' 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)