DataObjectIHandlerTrySetObject Method |
Attempts to set the specified object to the clipboard in a native-supplied way
Namespace:
Eto.Forms
Assembly:
Eto (in Eto.dll) Version: 2.5.3-dev
Syntax bool TrySetObject(
Object value,
string type
)
Function TrySetObject (
value As Object,
type As String
) As Boolean
abstract TrySetObject :
value : Object *
type : string -> bool
Parameters
- value
- Type: SystemObject
Value to set - type
- Type: SystemString
Data format type
Return Value
Type:
Booleantrue if the native handler set the value, or false to fallback to serialization or conversion to string
Remarks
This is used so native handlers can set certain objects in a particular way.
For example, on macOS, setting a Color object for
Color will use native API to set the value.
See Also