当投影缓冲区中的某一位置位于源范围接合处时,确定将接收典型插入的源插入点。
命名空间: Microsoft.VisualStudio.Text.Projection
程序集: Microsoft.VisualStudio.Text.Data(在 Microsoft.VisualStudio.Text.Data.dll 中)
语法
声明
Function GetTypicalInsertionPosition ( _
projectionInsertionPoint As SnapshotPoint, _
sourceInsertionPoints As ReadOnlyCollection(Of SnapshotPoint) _
) As Integer
int GetTypicalInsertionPosition(
SnapshotPoint projectionInsertionPoint,
ReadOnlyCollection<SnapshotPoint> sourceInsertionPoints
)
int GetTypicalInsertionPosition(
SnapshotPoint projectionInsertionPoint,
ReadOnlyCollection<SnapshotPoint>^ sourceInsertionPoints
)
abstract GetTypicalInsertionPosition :
projectionInsertionPoint:SnapshotPoint *
sourceInsertionPoints:ReadOnlyCollection<SnapshotPoint> -> int
function GetTypicalInsertionPosition(
projectionInsertionPoint : SnapshotPoint,
sourceInsertionPoints : ReadOnlyCollection<SnapshotPoint>
) : int
参数
projectionInsertionPoint
类型:Microsoft.VisualStudio.Text.SnapshotPointIProjectionBuffer 中的插入点。
sourceInsertionPoints
类型:ReadOnlyCollection<SnapshotPoint>源缓冲区中的插入点列表(长度为两个或多个字符)。
返回值
类型:Int32
一个介于 0 和 sourceInsertionPoints.Length - 1 之间的整数。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。