Home Notices Documents Classes Download Others Rice
Classes  >  clipboard  >  GetText()
clipboard class : GetText() method

Description

Gets a string from the clipboard.

Syntax

clipboadInstance.GetText()

Arguments

None

Return value

ClassDescription
stringThe string class on the clipboard.

Sample code

1:

clipboard c = new clipboard();

2:

string text = c.GetText();

Notes

It's a wrapper of the System.Windows.Clipboard.GetText() method.

When there is a text data on the clipboard, returns the string. Otherwise, returns the empty string.

Links for reference

Copyright © Rice All rights reserved.