Clipboard.SetText Method (String)

 

Stores UnicodeText data on the Clipboard.

Namespace:   System.Windows
Assembly:  PresentationCore (in PresentationCore.dll)

public static void SetText(
	string text
)

Parameters

text
Type: System.String

A string that contains the UnicodeText data to store on the Clipboard.

Exception Condition
ArgumentNullException

text is null.

This data format denotes 16-bit character encoded Unicode, also referred to as UTF-16, and UCS-2.

This method adds data with auto-conversion disabled.

.NET Framework
Available since 3.0
Silverlight
Available since 4.0
Windows Phone Silverlight
Available since 7.1
Return to top
Show: