Assembly: ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: 2.0.0.1500 (2.0.0.1500)
Syntax
C# |
---|
public sealed class SlideTitle |
Visual Basic (Declaration) |
---|
Public NotInheritable Class SlideTitle |
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 can include a title that's displayed to clarify the importance of what's displayed in the slide. A slide title includes the text to display, the font, background color properties and placement options.
Both slides and the Presentation itself have an associated SlideTitle. The Presentation's SlideTitle represents the currently displayed title. When a slide is set as the CurrentSlide, its title is copied to the presentation's SlideTitle property.
The presentation's SlideTitle can be modified before calling CaptureSlide()()() to create a new slide with that title.
Examples
// Create a new SlideTitle and set properties for its appearance SlideTitle slideTitle = new SlideTitle() { Text = "My Slide Title", Font = new System.Drawing.Font("Arial", 50, FontStyle.Bold), TextColor = Color.Yellow, BackColor = Color.Black, OutlineColor = Color.Orange, Outline = 4, Transparency = 40, DisplayPosition = DisplayPosition.TopRight }; // Set the Presentation's SlideTitle to be the new slide title 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);
' Create a new SlideTitle and set properties for its appearance Dim slideTitle As New SlideTitle With slideTitle .Text = "My Slide Title" .Font = New System.Drawing.Font("Arial", 50, FontStyle.Bold) .TextColor = Color.Yellow .BackColor = Color.Black .OutlineColor = Color.Orange .Outline = 4 .Transparency = 40 .DisplayPosition = DisplayPosition.TopRight End With ' Set the Presentation's SlideTitle to be the new slide title 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)