Partager via


IEditorOperations2.MoveSelectedLinesUp, méthode

Moves the selected lines up above the line bordering the selection on top. Moving up from the top of the file returns true, but no changes are made. Collapsed regions being moved, and being moved over, remain collapsed. Moves involving read-only regions result in no changes being made.

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

Syntaxe

'Déclaration
Function MoveSelectedLinesUp As Boolean
bool MoveSelectedLinesUp()
bool MoveSelectedLinesUp()
abstract MoveSelectedLinesUp : unit -> bool
function MoveSelectedLinesUp() : boolean

Valeur de retour

Type : Boolean
true if the edit succeeded or no change was needed, otherwise false.

Sécurité .NET Framework

Voir aussi

Référence

IEditorOperations2 Interface

Microsoft.VisualStudio.Text.Operations, espace de noms