Panes Property (AStatusBar)

Returns a specific pane of the object either by position or by name.

Syntax

[ pPane = ] Object.Panes ( vKey )

The Panes property syntax has the following parts:

 

Name

Type

Description

Object

AStatusBar

AStatusBar object

pPane

AStatusBarPane

A specific pane of the AStatusBar object.

vKey

Variant

The parameter which specifies the object. This can be a position (index) or a string (pane name).

Comments

The panes collection is a zero-based collection.

Example

The following statement returns the first pane of the AStatusBar object:

Pane=sbr.Panes(0)

The following statement returns the "Time" pane of the AStatusBar object:

Pane=sbr.Panes("Time")

Applies to

AStatusBar

See Also

Clear, InsertPane, PaneCount, RemovePane