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

Description

Sets a string to the clipboard.

Syntax

clipboadInstance.SetText(string setData)

Arguments

ClassNameDescription
stringsetDataA string which want to set.

Return value

None

Sample code

1:

clipboard c = new clipboard();

2:

c.SetText("any string");

Notes

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

Nothing happens if set a empty string.

Links for reference

Copyright © Rice All rights reserved.