DataFormat<T> Class
Definition
Represents a format usable with the clipboard and drag-and-drop, with a data type.
public class DataFormat<T>
Remarks
This class cannot be instantiated directly. Use universal formats such as Avalonia.Input.DataFormat.Text and Avalonia.Input.DataFormat.File, or create custom formats using Avalonia.Input.DataFormat.CreateBytesApplicationFormat(string), Avalonia.Input.DataFormat.CreateStringApplicationFormat(string), Avalonia.Input.DataFormat.CreateBytesPlatformFormat(string) or Avalonia.Input.DataFormat.CreateStringPlatformFormat(string).
Methods
| Name | Description |
|---|---|
| CreateBytesApplicationFormat | Creates a new format specific to the application that returns an array of byte. Inherited from DataFormat. |
| CreateBytesPlatformFormat | Creates a new format for the current platform that returns an array of byte. Inherited from DataFormat. |
| CreateStringApplicationFormat | Creates a new format specific to the application that returns a string. Inherited from DataFormat. |
| CreateStringPlatformFormat | Creates a new format for the current platform that returns a string. Inherited from DataFormat. |
| Equals (2 overloads) | Inherited from DataFormat. |
| GetHashCode | Inherited from DataFormat. |
| ToString | Inherited from DataFormat. |
| ToSystemName | Creates a name for this format, usable by the underlying platform. Inherited from DataFormat. |
Properties
| Name | Description |
|---|---|
| Bitmap | Gets a data format representing a bitmap. Its data type is Avalonia.Media.Imaging.Bitmap. Inherited from DataFormat. |
| File | Gets a data format representing a single file. Its data type is Avalonia.Platform.Storage.IStorageItem. Inherited from DataFormat. |
| Identifier | Gets the identifier of the data format. Inherited from DataFormat. |
| Kind | Gets the kind of the data format. Inherited from DataFormat. |
| Text | Gets a data format representing plain text. Its data type is string. Inherited from DataFormat. |