Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
'Declaration
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.