CountOfVisibleLines Property

Applies To

CodePane object.

Description

Returns a Long containing the number of lines visible in a code pane. Read-only.

See Also

CountOfDeclarationLines property, CountOfLines property, DeleteLines method, InsertLines method, Lines method, ReplaceLine method.

Example

The following example uses the CountOfVisibleLines property to return the number of lines visible at one time in a particular code pane, based on the height of the pane.

Debug.Print Application.VBE.Codepanes(3).CountOfVisibleLines