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)
- C#
- VB
- F#
public void Set<T>(
DataFormat<T> format,
Func<T> getValue
)
where T : class
Public Sub Set(Of T As Class) (
format As DataFormat(Of T),
getValue As Func(Of T)
)
member Set :
format : DataFormat<'T> *
getValue : Func<'T> -> unit when 'T : not struct
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