获取包含指定 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
类型:Doubley 坐标(以文本呈现坐标表示)。
返回值
类型:Microsoft.VisualStudio.Text.Formatting.ITextViewLine
包含 y 坐标的文本行或 nullnull 引用(在 Visual Basic 中为 Nothing) ,如果不存在任何继承。
异常
异常 | 条件 |
---|---|
ArgumentOutOfRangeException | y 为 Nan。 |
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。