DataFormat Class
Definition
Represents a format usable with the clipboard and drag-and-drop.
public class DataFormat
Methods
| Name | Description |
|---|---|
| CreateBytesApplicationFormat | Creates a new format specific to the application that returns an array of byte. |
| CreateBytesPlatformFormat | Creates a new format for the current platform that returns an array of byte. |
| CreateInProcessFormat | No summary available. |
| CreateStringApplicationFormat | Creates a new format specific to the application that returns a string. |
| CreateStringPlatformFormat | Creates a new format for the current platform that returns a string. |
| Equals (2 overloads) | No summary available. |
| GetHashCode | No summary available. |
| ToString | No summary available. |
| ToSystemName | Creates a name for this format, usable by the underlying platform. |
CreateBytesApplicationFormat Method
Creates a new format specific to the application that returns an array of byte.
public Avalonia.Input.DataFormat<T><byte[]> CreateBytesApplicationFormat(string identifier)
Parameters
identifier string
The format identifier. To avoid conflicts with system identifiers, this value isn't passed to the underlying platform directly. However, two different applications using the same identifier with Avalonia.Input.DataFormat.CreateBytesApplicationFormat(string) or Avalonia.Input.DataFormat.CreateStringApplicationFormat(string) are able to share data using this format.
Only ASCII letters (A-Z, a-z), digits (0-9), the dot (.) and the hyphen (-) are accepted.
Returns
Avalonia.Input.DataFormat<T><byte[]>
A new Avalonia.Input.DataFormat.
CreateBytesPlatformFormat Method
Creates a new format for the current platform that returns an array of byte.
public Avalonia.Input.DataFormat<T><byte[]> CreateBytesPlatformFormat(string identifier)
Parameters
identifier string
The format identifier. This value is not validated and is passed AS IS to the underlying platform. Most systems use mime types, but macOS requires Uniform Type Identifiers (UTI).