Gets the MapItem whose popup window is associated with this slide. A null reference will be returned if the slide does not have an associated popup window.

Namespace:  ESRI.ArcGISExplorer.Mapping

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

Syntax

C#
public MapItem PopupItem { get; }
Visual Basic (Declaration)
Public ReadOnly Property PopupItem As MapItem

Field Value

A MapItem representing the visible popup window in the slide.

Remarks

When you create a slide using the CaptureSlide()()() method on Presentation, if a popup window is displayed, the MapItem associated with the popup window is recorded as the slide's PopupItem. When the slide is set as the CurrentSlide, the popup window for the PopupItem is automatically displayed. If there is no popup window visible for the slide, the PopupItem will be nullNothingnullptra null reference (Nothing in Visual Basic).

Examples

The code below shows how you can get the PopupItem for the current slide and report its type.
CopyC#
// Get the presentation's CurrentSlide's PopupItem
Slide slide = ESRI.ArcGISExplorer.Application.Application.Presentation.CurrentSlide;
MapItem popupItem = slide.PopupItem;

if (popupItem == null)
  System.Diagnostics.Debug.WriteLine("The slide does not include a visible popup");
else
  if (popupItem is Note)
    System.Diagnostics.Debug.WriteLine("The popup item is a note.");
  else if (popupItem is KmlNode)
    System.Diagnostics.Debug.WriteLine("The popup item is a Kml node.");
  else if (popupItem is Layer)
    System.Diagnostics.Debug.WriteLine("The popup item is a feature.");
CopyVB.NET
' Get the presentation's CurrentSlide's PopupItem
Dim slide As Slide = ESRI.ArcGISExplorer.Application.Application.Presentation.CurrentSlide
Dim popupItem As MapItem = slide.PopupItem

If popupItem Is Nothing Then
  System.Diagnostics.Debug.WriteLine("The slide does not include a visible popup")
ElseIf TypeOf popupItem Is Note Then
  System.Diagnostics.Debug.WriteLine("The popup item is a note.")
ElseIf TypeOf popupItem Is KmlNode Then
  System.Diagnostics.Debug.WriteLine("The popup item is a Kml node.")
ElseIf TypeOf popupItem Is Layer Then
  System.Diagnostics.Debug.WriteLine("The popup item is a feature.")
End If

See Also