Partager via


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

'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: 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

See Also

Reference

ITextViewLineCollection Interface

Microsoft.VisualStudio.Text.Editor Namespace