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