ITextViewLineCollection::GetTextViewLineContainingYCoordinate Method (Double)
Visual Studio 2015
Gets the ITextViewLine that contains the specified y-coordinate.
Assembly: Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)
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. |
Show: