Version

ViewLineFromVerticalOffset Method

Returns the DocumentViewLine that contains the specified vertical pixel offset (in text coordinates) from the top of the view.
Syntax
'Declaration
 
Public Function ViewLineFromVerticalOffset( _
   ByVal offset As Double _
) As DocumentViewLine
public DocumentViewLine ViewLineFromVerticalOffset( 
   double offset
)

Parameters

offset
The vertical pixel offset (in text coordinates) from the top of the view to examine.

Return Value

The closest DocumentViewLine that contains the specified vertical pixel offset, or null if no DocumentViewLine contains the specified vertical pixel offset.
Remarks

Note: If no visible line contains the specified vertical pixel offset, the the closest visible line containing the offset is returned.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also