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 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。