ArcGIS Explorer Component Help |
SlideRange Constructor |
SlideRange Structure Example See Also |
Initializes a new instance of the SlideRange struct.
Namespace:
ESRI.ArcGISExplorer.MappingAssembly: ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: 2.0.0.1500 (2.0.0.1500)
Syntax
C# |
---|
public SlideRange( int from, int to ) |
Visual Basic (Declaration) |
---|
Public Sub New ( _ from As Integer, _ to As Integer _ ) |
Parameters
- from
- Type: System..::.Int32
An int representing the first slide index in the range.
- to
- Type: System..::.Int32
An int representing the last slide index in the range.
Examples
The code below demonstrates how to specify a slide range and set the SlideRangeSelection to UserSpecifiedRange, then start the presentation.
CopyC#
// Create a new slide range starting at the 3rd slide and ending at the 8th slide SlideRange slideRange = new SlideRange(2, 7); // Set the new slide range in the PresentationOptions and ser the SlideRangeSelection to honor it Presentation presentation = ESRI.ArcGISExplorer.Application.Application.Presentation; presentation.PresentationOptions.SlideRange = slideRange; presentation.PresentationOptions.UseSlideRange = true; // Start the presentation presentation.PresentationMode = PresentationMode.Presenting;
CopyVB.NET
' Create a new slide range starting at the 3rd slide and ending at the 8th slide Dim slideRange As New SlideRange(2, 7) ' Set the new slide range in the PresentationOptions and ser the SlideRangeSelection to honor it Dim presentation As Presentation = ESRI.ArcGISExplorer.Application.Application.Presentation presentation.PresentationOptions.SlideRange = slideRange presentation.PresentationOptions.UseSlideRange = True ' Start the presentation presentation.PresentationMode = PresentationMode.Presenting