TopLine Property

Home Page (Objects)OverviewFAQReference

Applies to: TextSelection object

Gets the line at the top of a selection.

Syntax

object.TopLine

Parameters

object

An expression that evaluates to a TextSelection object.

Remarks

The TopLine property has the Long type.

The top line is not necessarily at the active end of the selection.

Example

The following example gets the line at the beginning of the selection in the active document:

Dim StartLine
StartLine = ActiveDocument.Selection.TopLine

See Also   BottomLine property, CurrentLine property.