Compartir a través de


Explorer.IsPaneVisible Method (Outlook)

Returns a Boolean indicating whether a specific explorer pane is visible.

Syntax

expression .IsPaneVisible(Pane)

expression A variable that represents an Explorer object.

Parameters

Name

Required/Optional

Data Type

Description

Pane

Required

OlPane

The pane to check.

Return Value

True if the specified pane is displayed in the explorer; otherwise, False.

Remarks

You can also use the Visible property of the OutlookBarPane object to determine whether the Shortcuts pane is visible.

Example

This Microsoft Visual Basic for Applications (VBA) sample uses the IsPaneVisible method to determine whether the preview pane is visible and uses the ShowPane method to display it if it is not visible. Use the olNavigationPane constant to hide or display the Navigation Pane.

Sub HidePreviewPane() 
 
 Dim myOlExp As Outlook.Explorer 
 
 Set myOlExp = Application.ActiveExplorer 
 
 If myOlExp.IsPaneVisible(olPreview) = False Then 
 
 myOlExp.ShowPane olPreview, True 
 
 End If 
 
 Set myOlExp = Nothing 
 
End Sub

See Also

Concepts

Explorer Object Members

Explorer Object