获取在指定的 ITextSnapshot 中触发此 IntelliSense 会话时所在的 SnapshotPoint。
命名空间: Microsoft.VisualStudio.Language.Intellisense
程序集: Microsoft.VisualStudio.Language.Intellisense(在 Microsoft.VisualStudio.Language.Intellisense.dll 中)
语法
声明
Function GetTriggerPoint ( _
textSnapshot As ITextSnapshot _
) As Nullable(Of SnapshotPoint)
Nullable<SnapshotPoint> GetTriggerPoint(
ITextSnapshot textSnapshot
)
Nullable<SnapshotPoint> GetTriggerPoint(
ITextSnapshot^ textSnapshot
)
abstract GetTriggerPoint :
textSnapshot:ITextSnapshot -> Nullable<SnapshotPoint>
function GetTriggerPoint(
textSnapshot : ITextSnapshot
) : Nullable<SnapshotPoint>
参数
textSnapshot
类型:Microsoft.VisualStudio.Text.ITextSnapshot
返回值
类型:Nullable<SnapshotPoint>
可以为 Null 的 SnapshotPoint。
备注
调用方应防止通过该仅 ITextSnapshot 的对象文本视图的 IBufferGraph 。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。