ClipboardGetObjectT Method (String) |
Gets an object from the data object with the specified type
Namespace:
Eto.Forms
Assembly:
Eto (in Eto.dll) Version: 2.5.3-dev
Syntax public T GetObject<T>(
string type
)
Public Function GetObject(Of T) (
type As String
) As T
abstract GetObject :
type : string -> 'T
override GetObject :
type : string -> 'T
Parameters
- type
- Type: SystemString
Type identifier to get from the data object
Type Parameters
- T
- Type of the object to get
Return Value
Type:
TAn instance of the object to recieve, or the default value.
Implements
IDataObjectGetObjectT(String)Remarks
This is useful when you know the type of object, and it is serializable or has a type converter to convert from string.
If it cannot be converted it will return the default value.
See Also