Skip to main content

TryGetRaw Method

Tries to get a value for a given format.

Definition

Namespace: Avalonia.Input
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public Object? TryGetRaw(
DataFormat format
)

Parameters

  DataFormat
The format to retrieve.

Return Value

Object
A value for format, or null if the format is not supported.

Implements

IDataTransferItem.TryGetRaw(DataFormat)

Remarks

Implementations of this method are expected to return a value matching the exact type of the generic argument of the underlying DataFormat(T).

To retrieve a typed value, use TryGetValue(T)(IDataTransferItem, DataFormat(T)).

See Also

Reference

DataTransferItem Class
Avalonia.Input Namespace
TryGetValue(T)(IDataTransferItem, DataFormat(T))
TryGetValue(T)(IDataTransfer, DataFormat(T))