ClipboardObject Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ClipboardObject() |
Constructs a new clipboard object based on the standard System.Windows.Forms.DataObject class. |
ClipboardObject(Object) |
Constructs a new or wraps an existing clipboard object based on the specified data. If the data is already a clipboard object, it is wrapped; otherwise, a new clipboard object is created to contain the data. |
ClipboardObject(String, Object) |
Constructs a new data object with the specified data in the specified format. |
ClipboardObject()
Constructs a new clipboard object based on the standard System.Windows.Forms.DataObject class.
public:
ClipboardObject();
public ClipboardObject ();
Public Sub New ()
Applies to
ClipboardObject(Object)
Constructs a new or wraps an existing clipboard object based on the specified data. If the data is already a clipboard object, it is wrapped; otherwise, a new clipboard object is created to contain the data.
public:
ClipboardObject(System::Object ^ data);
public ClipboardObject (object data);
new Microsoft.VisualStudio.Data.Framework.ClipboardObject : obj -> Microsoft.VisualStudio.Data.Framework.ClipboardObject
Public Sub New (data As Object)
Parameters
- data
- Object
The data to be contained in a new clipboard object, or an existing clipboard object.
Applies to
ClipboardObject(String, Object)
Constructs a new data object with the specified data in the specified format.
public:
ClipboardObject(System::String ^ format, System::Object ^ data);
public ClipboardObject (string format, object data);
new Microsoft.VisualStudio.Data.Framework.ClipboardObject : string * obj -> Microsoft.VisualStudio.Data.Framework.ClipboardObject
Public Sub New (format As String, data As Object)
Parameters
- format
- String
The class type associated with the data. See DataFormats for the predefined formats.
- data
- Object
The data to store.