Gets the Presentation for the currently open Map.

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 static Presentation Presentation { get; }
Visual Basic (Declaration)
Public Shared ReadOnly Property Presentation As Presentation

Field Value

The Presentation of the current Map.

Remarks

This static property allows you to get a reference to the Presentation from within the code of your add-in. The Presentation provides access to the map's collection of slides for display and editing, and allows you to start, stop, and control the presentation of those slides in the application.

Note that you may have to fully-qualify the Application class if you have a reference to System.Windows.Forms as it may clash with the Application class in that namespace.

Examples

The code below shows how you can get a reference to the current Presentation within add-in code, by using the static Presentation member of the Application class. The presentation is then started by setting the PresentationMode to Presenting. This code assumes you have a using/imports statement for the ESRI.ArcGISExplorer.Mapping namespace. It also assumes that you may have a using/imports statement for the System.Windows.Forms namespace, and therefore the Application class is fully qualified in order to avoid conflicts.
CopyC#
ESRI.ArcGISExplorer.Application.Application.Presentation.PresentationMode = PresentationMode.Presenting;
CopyVB.NET
ESRI.ArcGISExplorer.Application.Application.Presentation.PresentationMode = PresentationMode.Presenting

See Also