다음을 통해 공유


IBufferGraph.MapDownToInsertionPoint Method

Maps a position in some buffer in the graph to a position in a matching buffer that is lower in the graph and to which an insertion would be routed. Source buffers are considered to be lower than the projection buffers that consume them.

Namespace:  Microsoft.VisualStudio.Text.Projection
Assembly:  Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)

Syntax

'Declaration
Function MapDownToInsertionPoint ( _
    position As SnapshotPoint, _
    trackingMode As PointTrackingMode, _
    match As Predicate(Of ITextSnapshot) _
) As Nullable(Of SnapshotPoint)
Nullable<SnapshotPoint> MapDownToInsertionPoint(
    SnapshotPoint position,
    PointTrackingMode trackingMode,
    Predicate<ITextSnapshot> match
)
Nullable<SnapshotPoint> MapDownToInsertionPoint(
    SnapshotPoint position, 
    PointTrackingMode trackingMode, 
    Predicate<ITextSnapshot^>^ match
)
abstract MapDownToInsertionPoint : 
        position:SnapshotPoint * 
        trackingMode:PointTrackingMode * 
        match:Predicate<ITextSnapshot> -> Nullable<SnapshotPoint> 
function MapDownToInsertionPoint(
    position : SnapshotPoint, 
    trackingMode : PointTrackingMode, 
    match : Predicate<ITextSnapshot>
) : Nullable<SnapshotPoint>

Parameters

  • match
    Type: Predicate<ITextSnapshot>

    The predicate that identifies the target buffer.

Return Value

Type: Nullable<SnapshotPoint>
A point in a snapshot of some source buffer.

Exceptions

Exception Condition
ArgumentNullException

position.Snapshot or match is nulla null reference (Nothing in Visual Basic).

ArgumentOutOfRangeException

trackingMode is not a valid PointTrackingMode.

.NET Framework Security

See Also

Reference

IBufferGraph Interface

Microsoft.VisualStudio.Text.Projection Namespace