Share via


DocumentWindow.ActivePane Property

Returns a Pane object that represents the active pane in the document window. Read-only.

Namespace:  Microsoft.Office.Interop.PowerPoint
Assembly:  Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)

Syntax

'Declaration
ReadOnly Property ActivePane As Pane
    Get
'Usage
Dim instance As DocumentWindow
Dim value As Pane

value = instance.ActivePane
Pane ActivePane { get; }

Property Value

Type: Microsoft.Office.Interop.PowerPoint.Pane
Pane

Examples

If the active pane is the slide pane, this example makes the notes pane the active pane. The notes pane is the third member of the Panes collection.

With ActiveWindow

    If .ActivePane.ViewType = ppViewSlide Then

        .Panes(3).Activate

    End If

End With

See Also

Reference

DocumentWindow Interface

DocumentWindow Members

Microsoft.Office.Interop.PowerPoint Namespace