Skip to main content

DataFormat<T> Class

Represents a format usable with the clipboard and drag-and-drop, with a data type.

Definition​

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

public sealed class DataFormat<T> : DataFormat
where T : class

View Source
InheritanceObject → DataFormat → DataFormat(T)

Type Parameters​

The data type.

Remarks​

This class cannot be instantiated directly. Use universal formats such as Text and File, or create custom formats using CreateBytesApplicationFormat(String), CreateStringApplicationFormat(String), CreateBytesPlatformFormat(String) or CreateStringPlatformFormat(String).

Properties​

IdentifierGets the identifier of the data format.
(Inherited from DataFormat)
KindGets the kind of the data format.
(Inherited from DataFormat)

Methods​

Equals(DataFormat)Indicates whether the current object is equal to another object of the same type.
(Inherited from DataFormat)
Equals(Object)Determines whether the specified object is equal to the current object.
(Inherited from DataFormat)
GetHashCode()Serves as the default hash function.
(Inherited from DataFormat)
GetType()Gets the Type of the current instance.
(Inherited from Object)
ToString()Returns a string that represents the current object.
(Inherited from DataFormat)
ToSystemName(String)Creates a name for this format, usable by the underlying platform.
(Inherited from DataFormat)

See Also​

Reference​

Avalonia.Input Namespace