Share via


ITextSelection.Select, méthode (SnapshotSpan, Boolean)

Sélectionne le texte dans l'étendue spécifiée de sélection.

Espace de noms :  Microsoft.VisualStudio.Text.Editor
Assembly :  Microsoft.VisualStudio.Text.UI (dans Microsoft.VisualStudio.Text.UI.dll)

Syntaxe

'Déclaration
Sub Select ( _
    selectionSpan As SnapshotSpan, _
    isReversed As Boolean _
)
void Select(
    SnapshotSpan selectionSpan,
    bool isReversed
)
void Select(
    SnapshotSpan selectionSpan, 
    bool isReversed
)
abstract Select : 
        selectionSpan:SnapshotSpan * 
        isReversed:bool -> unit
function Select(
    selectionSpan : SnapshotSpan, 
    isReversed : boolean
)

Paramètres

  • isReversed
    Type : Boolean

    true si la sélection a été faite en sens inverse, sinon false.

Notes

Dans une sélection inversée, le point actif est Span.Start et le point d'ancrage est Span.End. Dans une sélection non- inversée, le point actif est span.end et le point d'ancrage est Span.Start.

Sécurité .NET Framework

Voir aussi

Référence

ITextSelection Interface

Select, surcharge

Microsoft.VisualStudio.Text.Editor, espace de noms