IProjectionEditResolver.GetTypicalInsertionPosition Method
When a position in the projection buffer lies on a source buffer seam, determine which source insertion point would receive a typical insertion.
Namespace: Microsoft.VisualStudio.Text.Projection
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Syntax
'Declaration
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
Parameters
projectionInsertionPoint
Type: Microsoft.VisualStudio.Text.SnapshotPointThe insertion point in the IProjectionBuffer.
sourceInsertionPoints
Type: System.Collections.ObjectModel.ReadOnlyCollection<SnapshotPoint>The list of insertion points in the source buffers (of length two or more).
Return Value
Type: System.Int32
An integer between 0 and sourceInsertionPoints.Length - 1.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.