C# Class Microsoft.Silverlight.Testing.Client.ClipboardHelper

Exposes clipboard functionality within Silverlight 3 applications when a Silverlight 4 runtime is in use.
ファイルを表示 Open project: garyjohnson/wpnest

Public Methods

Method Description
ContainsText ( ) : bool

Queries the clipboard for the presence of data in the Unicode text format.

GetText ( ) : string

Retrieves Unicode text data from the system clipboard, if Unicode text data exists.

SetText ( string text ) : void

Sets Unicode text data to store on the clipboard, for later access with System.Windows.Clipboard.GetText().

Private Methods

Method Description
PrepareClipboardInstance ( ) : void

Prepares the type and reflects for new Silverlight features.

RequireClipboardFeature ( ) : void

Prepares to use the System.Windows.Clipboard type and throws an exception if the feature cannot be completely located.

Method Details

ContainsText() public static method

Queries the clipboard for the presence of data in the Unicode text format.
public static ContainsText ( ) : bool
return bool

GetText() public static method

Retrieves Unicode text data from the system clipboard, if Unicode text data exists.
public static GetText ( ) : string
return string

SetText() public static method

Sets Unicode text data to store on the clipboard, for later access with System.Windows.Clipboard.GetText().
public static SetText ( string text ) : void
text string A string that contains the Unicode text data to /// store on the clipboard.
return void