Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/vs-editor-api.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/Text/Def/TextUI/Operations/IEditorOperations3.cs')
-rw-r--r--src/Text/Def/TextUI/Operations/IEditorOperations3.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/Text/Def/TextUI/Operations/IEditorOperations3.cs b/src/Text/Def/TextUI/Operations/IEditorOperations3.cs
index e176fde..eceb30d 100644
--- a/src/Text/Def/TextUI/Operations/IEditorOperations3.cs
+++ b/src/Text/Def/TextUI/Operations/IEditorOperations3.cs
@@ -35,5 +35,16 @@ namespace Microsoft.VisualStudio.Text.Operations
/// </para>
/// </remarks>
bool TrimTrailingWhiteSpace();
+
+ /// <summary>
+ /// Duplicates the current selection, or the whole line (if there is no selection), without changing the clipboard.
+ /// </summary>
+ /// <returns>
+ /// <c>true</c> if the edit succeeded, otherwise <c>false</c>.
+ /// </returns>
+ /// <remarks>
+ /// Multiple selection cases like block selection will treat each selection independently.
+ /// </remarks>
+ bool DuplicateSelection();
}
}