ITextViewLineCollection.GetTextViewLineContainingYCoordinate Method
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)
Syntax
'Декларация
Function GetTextViewLineContainingYCoordinate ( _
y As Double _
) As ITextViewLine
ITextViewLine GetTextViewLineContainingYCoordinate(
double y
)
ITextViewLine^ GetTextViewLineContainingYCoordinate(
double y
)
abstract GetTextViewLineContainingYCoordinate :
y:float -> ITextViewLine
function GetTextViewLineContainingYCoordinate(
y : double
) : ITextViewLine
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 nulla null reference (Nothing in Visual Basic) if none exists.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | y is NaN. |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.