IEditorOperations.CopySelection Method
Copies the selected text to the clipboard.
Namespace: Microsoft.VisualStudio.Text.Operations
Assembly: Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)
Syntax
'Declaration
Function CopySelection As Boolean
bool CopySelection()
bool CopySelection()
abstract CopySelection : unit -> bool
function CopySelection() : boolean
Return Value
Type: Boolean
true if the clipboard operation succeeded, otherwise false.
Exceptions
Exception | Condition |
---|---|
InsufficientMemoryException | There is not sufficient memory to complete the operation. |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.