Window Properties

Name

Returns

Description

Caption

String

Read-only. Returns the caption of the Window, as shown in its title bar.

Name

Returns

Description

Height

Long

The height of the Window, in twips (1 twip = 1/20 points). Does not affect docked windows.

HWnd

Long

Hidden. Read-only. Returns a handle to the Window, for use in Windows API calls.

Left

Long

The left edge of the Window on the screen, in twips (1 twip = 1/20 points). Does not affect docked windows.

Linked WindowFrame

Window

Read-only. Multiple windows can be linked together in the VBE (for example, while docking them). This property returns another Window that represents the frame surrounding the docked windows. Returns Nothing if the window is not linked.

Linked Windows

Linked Windows

Read-only. Returns a collection of windows linked to the Window (for example, when docked).

Top

Long

The top of the Window on the screen, in twips (1 twip = 1/20 points). Does not affect docked windows.

Type

vbext_ WindowType

Read-only. Returns the window type, such as CodePane, Immediate window, Main window, and so on.

Visible

Boolean

Gets or sets whether or not the window is visible.

Width

Long

The width of the Window, in twips (1 twip = 1/20 points). Does not affect docked windows.

WindowState

vbext_ WindowState

The Window state.

0 0

Post a comment