共用方式為


ITextViewLine.GetTextElementSpan 方法

取得文字項目索引對應於指定之緩衝區位置的範圍。

命名空間:  Microsoft.VisualStudio.Text.Formatting
組件:  Microsoft.VisualStudio.Text.UI (在 Microsoft.VisualStudio.Text.UI.dll 中)

語法

'宣告
Function GetTextElementSpan ( _
    bufferPosition As SnapshotPoint _
) As SnapshotSpan
SnapshotSpan GetTextElementSpan(
    SnapshotPoint bufferPosition
)
SnapshotSpan GetTextElementSpan(
    SnapshotPoint bufferPosition
)
abstract GetTextElementSpan : 
        bufferPosition:SnapshotPoint -> SnapshotSpan
function GetTextElementSpan(
    bufferPosition : SnapshotPoint
) : SnapshotSpan

參數

傳回值

類型:Microsoft.VisualStudio.Text.SnapshotSpan
對應至指定之文字項目的 SnapshotSpan

.NET Framework 安全性

請參閱

參考

ITextViewLine 介面

Microsoft.VisualStudio.Text.Formatting 命名空間