ITextViewLineCollection.GetTextViewLineContainingYCoordinate 方法

获取包含指定 y 坐标的 ITextViewLine

命名空间:  Microsoft.VisualStudio.Text.Editor
程序集:  Microsoft.VisualStudio.Text.UI(在 Microsoft.VisualStudio.Text.UI.dll 中)

语法

声明
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

参数

  • y
    类型:Double

    y 坐标(以文本呈现坐标表示)。

返回值

类型:Microsoft.VisualStudio.Text.Formatting.ITextViewLine
包含 y 坐标的文本行或 nullnull 引用(在 Visual Basic 中为 Nothing) ,如果不存在任何继承。

异常

异常 条件
ArgumentOutOfRangeException

y 为 Nan。

.NET Framework 安全性

请参阅

参考

ITextViewLineCollection 接口

Microsoft.VisualStudio.Text.Editor 命名空间