|
|
LocationMy.Computer.Clipboard.SetDataObject SyntaxMy.Computer.Clipboard.SetDataObject(data)
DescriptionThe SetDataObject method writes an object of type System.Widows.Forms.DataObject to the system clipboard. The DataObject class allows a single object to store the same data in multiple formats. For instance, a single data object could store the same data in plain text, Rich Text Format, and HTML. Usage at a Glance
ExampleThe following code adds two types of data to the clipboard. Dim pasteData As New System.Windows.Forms.DataObject pasteData.SetText("This is a pen.") pasteData.SetData("Japanese-Romaji", "Kore wa pen desu.") My.Computer.Clipboard.SetDataObject(pasteData) Related Framework Entries
See AlsoClipboard Object, GetDataObject Method, SetAudio Method, SetData Method, SetDataObject Method, SetFileDropList Method, SetImage Method, SetText Method |
|
|