Represents all of the slides 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 SlideCollection : Collection<Slide>
Visual Basic (Declaration)
Public NotInheritable Class SlideCollection _
	Inherits Collection(Of 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.

A SlideCollection contains all of the slides in a Presentation, including slides that are not Visible and that may be outside of the SlideRange.

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.

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

  System.Collections.ObjectModel..::.Collection<(Of <(Slide>)>)

    ESRI.ArcGISExplorer.Mapping..::.SlideCollection

See Also