获取其文本元素索引对应于给定缓冲区位置的范围。
命名空间: 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
参数
bufferPosition
类型:Microsoft.VisualStudio.Text.SnapshotPoint缓冲区位置。
返回值
类型:Microsoft.VisualStudio.Text.SnapshotSpan
与给定文本元素相对应的 SnapshotSpan。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。