Gets or sets the Viewpoint that is associated with this slide.

Namespace:  ESRI.ArcGISExplorer.Mapping

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

Syntax

C#
public Viewpoint Viewpoint { get; set; }
Visual Basic (Declaration)
Public Property Viewpoint As Viewpoint

Field Value

A Viewpoint that is associated with the slide.

Remarks

When a slide is captured using the CaptureSlide()()() method on Presentation, the slide's Viewpoint is the viewpoint of the ActiveMapDisplay. You can use this property to get a reference to the viewpoint, or replace it with another viewpoint. When the slide is set as the CurrentSlide, the map zooms to the slide's viewpoint.

Examples

The code below shows how you can update the viewpoint for each slide in the presentation to be the current viewpoint of the ActiveMapDisplay.
CopyC#
// Get the current Viewpoint of the map
Viewpoint mapViewpoint = ESRI.ArcGISExplorer.Application.Application.ActiveMapDisplay.GetViewpoint();

// Update each slide in the presentation to have the current Viewpoint
foreach (Slide slide in ESRI.ArcGISExplorer.Application.Application.Presentation.Slides)
  slide.Viewpoint = mapViewpoint;
CopyVB.NET
' Get the current Viewpoint of the map
Dim mapViewpoint As Viewpoint = ESRI.ArcGISExplorer.Application.Application.ActiveMapDisplay.GetViewpoint()

' Update each slide in the presentation to have the current Viewpoint
For Each slide As Slide In ESRI.ArcGISExplorer.Application.Application.Presentation.Slides
  slide.Viewpoint = mapViewpoint
Next

See Also