Captures a new Slide based on the current state of the map and the presentation's SlideTitle.

Namespace:  ESRI.ArcGISExplorer.Application

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

Syntax

C#
public Slide CaptureSlide()
Visual Basic (Declaration)
Public Function CaptureSlide As Slide

Return Value

A new Slide whose viewpoint, visible items, popup window, basemap and title are based on the current state of the map.

Remarks

A Slide represents a Viewpoint, collection of MapItem that are visible, a Basemap and can also include a SlideTitle and visible popup window. This method will create a new slide that is based on the current state of the map. The currently visible map items will become the visible items in the new slide, etc.

To include a title for your new slide, before capturing it, set the presentation's SlideTitle to a slide title with the text, font, colors and so on that you want reflected in your slide.

It is important to note that a newly captured slide is not part of the presentation until its added to the presentation's Slides collection. A slide can't be set as the current slide until its been added to the presentation.

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)

See Also