Share via


IBufferGraph.MapDownToInsertionPoint, méthode

Mappe une position dans une mémoire tampon dans le graphique à une position dans une mémoire tampon correspondante qui est inférieure dans le graphique et à laquelle une insertion serait routée. Les mémoires tampons source sont considérées comme inférieures aux mémoires tampons de projection qui les consomment.

Espace de noms :  Microsoft.VisualStudio.Text.Projection
Assembly :  Microsoft.VisualStudio.Text.Data (dans Microsoft.VisualStudio.Text.Data.dll)

Syntaxe

'Déclaration
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>

Paramètres

  • match
    Type : Predicate<ITextSnapshot>

    Prédicat qui identifie la mémoire tampon cible.

Valeur de retour

Type : Nullable<SnapshotPoint>
Point dans un instantané d'une mémoire tampon source.

Exceptions

Exception Condition
ArgumentNullException

position. L'instantané ou l'match est nullune référence null (Nothing en Visual Basic).

ArgumentOutOfRangeException

trackingMode n'est pas un PointTrackingMode valide.

Sécurité .NET Framework

Voir aussi

Référence

IBufferGraph Interface

Microsoft.VisualStudio.Text.Projection, espace de noms