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