TextEdit.Copy() Method
Copies the current selection to the Clipboard.
Namespace: DevExpress.XtraEditors
Assembly: DevExpress.XtraEditors.v18.2.dll
Declaration
Remarks
Use the Copy method to copy the selected text to the Clipboard. Note that end-users can copy the selection using the CTRL+C or CTRL+INS key combinations or using the editor’s built-in context menu. The Copy method is useful if you need to provide additional methods to copy the selected text.
Example
The following sample code verifies whether any text is selected in a TextEdit control and, if so, copies the selected text onto the Clipboard.
private void button1_Click(object sender, System.EventArgs e) {
if (textEdit1.SelectionLength > 0) {
textEdit1.Copy();
}
}
See Also