共用方式為


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

參數

傳回值

類型:Microsoft.VisualStudio.Text.SnapshotPoint
VisualBuffer 中對應於指定點的點。

備註

「 最近 」 定義的文字檢視模型實作而定。

.NET Framework 安全性

請參閱

參考

ITextViewModel 介面

Microsoft.VisualStudio.Text.Editor 命名空間