Click or drag to resize

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
)

Parameters

value
Type: SystemObject
Value to set
type
Type: SystemString
Data format type

Return Value

Type: Boolean
true 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