clipboard class : GetText() method
Description
Gets a text data from the clipboard.
Syntax
instance.GetText()
Arguments
None.
Return value
Class | Description |
string | A text data. |
Sample code
1: | clipboard clip; |
2: | string textdata = clip.GetText(); |
Notes
If a text data exists, it is returned as a string. Otherwise, returns an empty string.
It is a wrapper of the System.Windows.Clipboard.GetText().