LocationMy.Computer.Clipboard.GetDataObject SyntaxDim result As System.Windows.Forms.IDataObject = _ My.Computer.Clipboard.GetDataObject( ) DescriptionThe GetDataObject method returns an object that supports the interface System.Windows.Forms.IDataObject using data from the system clipboard. The IDataObject interface 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 displays the data formats current stored on the system clipboard. Dim clipboardFormats As System.Windows.Forms.IDataObject Dim formatNames( ) As String clipboardFormats = My.Computer.Clipboard.GetDataObject( ) formatNames = clipboardFormats.GetFormats(True) MsgBox(Join(formatNames, vbCrLf)) Related Framework Entries
See AlsoClipboard Object, GetAudioStream Method, GetData Method, GetFileDropList Method, GetImage Method, GetText Method, SetDataObject Method |