ITextViewLineCollection.GetIndexOfTextLine 方法
取得指定文字檢視行之文字行中的索引。
命名空間: Microsoft.VisualStudio.Text.Editor
組件: Microsoft.VisualStudio.Text.UI (在 Microsoft.VisualStudio.Text.UI.dll 中)
語法
'宣告
Function GetIndexOfTextLine ( _
textLine As ITextViewLine _
) As Integer
int GetIndexOfTextLine(
ITextViewLine textLine
)
int GetIndexOfTextLine(
ITextViewLine^ textLine
)
abstract GetIndexOfTextLine :
textLine:ITextViewLine -> int
function GetIndexOfTextLine(
textLine : ITextViewLine
) : int
參數
textLine
類型:Microsoft.VisualStudio.Text.Formatting.ITextViewLine要尋找索引的 ITextViewLine。
傳回值
類型:Int32
索引ITextViewLine在 \ 檢視表的TextViewLines清單。
例外狀況
例外狀況 | 條件 |
---|---|
ArgumentNullException | textLine 為 nullnull 參考 (即 Visual Basic 中的 Nothing)。 |
ObjectDisposedException | textLine 已經處置。 |
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。