Skip to main content

Set<T>(DataFormat<T>, T) Method

Sets the value for a given format.

Definition

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

public void Set<T>(
DataFormat<T> format,
T value
)
where T : class

Parameters

  DataFormat(T)
The format.
  T
The value corresponding to format. If null, the format won't be part of the DataTransferItem.

Type Parameters

See Also

Reference

DataTransferItem Class
Set Overload
Avalonia.Input Namespace