ITextViewModel.GetNearestPointInVisualSnapshot 方法
取得在 VisualBuffer 中對應於編輯緩衝區中之指定點的點。 如果該點是隱藏的或有替代表示,則會取得最接近該點的點。
命名空間: Microsoft.VisualStudio.Text.Editor
組件: Microsoft.VisualStudio.Text.UI (在 Microsoft.VisualStudio.Text.UI.dll 中)
語法
'宣告
Function GetNearestPointInVisualSnapshot ( _
editBufferPoint As SnapshotPoint, _
targetVisualSnapshot As ITextSnapshot, _
trackingMode As PointTrackingMode _
) As SnapshotPoint
SnapshotPoint GetNearestPointInVisualSnapshot(
SnapshotPoint editBufferPoint,
ITextSnapshot targetVisualSnapshot,
PointTrackingMode trackingMode
)
SnapshotPoint GetNearestPointInVisualSnapshot(
SnapshotPoint editBufferPoint,
ITextSnapshot^ targetVisualSnapshot,
PointTrackingMode trackingMode
)
abstract GetNearestPointInVisualSnapshot :
editBufferPoint:SnapshotPoint *
targetVisualSnapshot:ITextSnapshot *
trackingMode:PointTrackingMode -> SnapshotPoint
function GetNearestPointInVisualSnapshot(
editBufferPoint : SnapshotPoint,
targetVisualSnapshot : ITextSnapshot,
trackingMode : PointTrackingMode
) : SnapshotPoint
參數
editBufferPoint
類型:Microsoft.VisualStudio.Text.SnapshotPointEditBuffer 中的點。
targetVisualSnapshot
類型:Microsoft.VisualStudio.Text.ITextSnapshot要與之對應的 VisualBuffer 快照。
trackingMode
類型:Microsoft.VisualStudio.Text.PointTrackingModePointTrackingMode來進行轉譯時要使用targetVisualSnapshot。
傳回值
類型:Microsoft.VisualStudio.Text.SnapshotPoint
VisualBuffer 之中,對應於 targetVisualSnapshot 中之指定點的點。
備註
「 最近 」 定義的文字檢視模型實作而定。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。