Home News DOC Class DL Others Rice
Class  >  clipboard  >  GetText()
clipboard class : GetText() method

Description

Gets a text data from the clipboard.

Syntax

instance.GetText()

Arguments

None.

Return value

ClassDescription
stringA 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().

Links for reference

Copyright © Rice All rights reserved.