共用方式為


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 命名空間