Skip to main content

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

Sets a value created on demand for a given format.

Definition​

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

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

Parameters​

  DataFormat(T)
The format.
  Func(T)
A function returning the value corresponding to format.

Type Parameters​

The value type.

See Also​

Reference​

DataTransferItem Class
Set Overload
Avalonia.Input Namespace