Прочитать на английском

Поделиться через


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

bool CopySelection()

Return Value

Type: System.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

See Also

Reference

IEditorOperations Interface

Microsoft.VisualStudio.Text.Operations Namespace