ITextViewLineCollection::GetTextViewLineContainingYCoordinate Method (Double)

 

Gets the ITextViewLine that contains the specified y-coordinate.

Namespace:   Microsoft.VisualStudio.Text.Editor
Assembly:  Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)

ITextViewLine^ GetTextViewLineContainingYCoordinate(
	double y
)

Parameters

y
Type: System::Double

The y-coordinate in the text rendering coordinate.

Return Value

Type: Microsoft.VisualStudio.Text.Formatting::ITextViewLine^

A text line that contains the y-coordinate, or null if none exists.

Exception Condition
ArgumentOutOfRangeException

y is NaN.

Return to top
Show: