Version

Copy Method

Performs a Copy edit operation on the currently selected text, placing it on the clipboard.
Syntax
'Declaration
 
Public Sub Copy() 
public void Copy()
Remarks
The ClipMode property determines how the text appears on the clipboard.
Example
Following code selects all the text in masked edit and then copies it to the clipboard printing out the selected text as well.

Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinMaskedEdit

  Private Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button2.Click

      ' Following code selects all the text in the masked edit control and
      ' then copies it to the clipboard by calling Copy method off the masked edit.

      Me.UltraMaskedEdit1.SelectAll()

      Debug.WriteLine("Selected Text = " & Me.ultraMaskedEdit1.SelectedText)

      Me.UltraMaskedEdit1.Copy()
  End Sub
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.UltraWinMaskedEdit;
using System.Diagnostics;

private void button2_Click(object sender, System.EventArgs e)
{
	// Following code selects all the text in the masked edit control and
	// then copies it to the clipboard by calling Copy method off the masked edit.

	this.ultraMaskedEdit1.SelectAll( );

	Debug.WriteLine( "Selected Text = " + this.ultraMaskedEdit1.SelectedText );

	this.ultraMaskedEdit1.Copy( );
}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also