Skip to main content

DataFormat Class

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

Definition

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

public abstract class DataFormat : IEquatable<DataFormat>
View Source
InheritanceObject → DataFormat
DerivedAvalonia.Input.DataFormat(T)
ImplementsIEquatable(DataFormat)

Properties

FileGets a data format representing a single file. Its data type is IStorageItem.
IdentifierGets the identifier of the data format.
KindGets the kind of the data format.
TextGets a data format representing plain text. Its data type is String.

Methods

CreateBytesApplicationFormat(String)Creates a new format specific to the application that returns an array of Byte.
CreateBytesPlatformFormat(String)Creates a new format for the current platform that returns an array of Byte.
CreateStringApplicationFormat(String)Creates a new format specific to the application that returns a String.
CreateStringPlatformFormat(String)Creates a new format for the current platform that returns a String.
Equals(DataFormat)Indicates whether the current object is equal to another object of the same type.
Equals(Object)Determines whether the specified object is equal to the current object.
(Overrides Object.Equals(Object))
Finalize()Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCode()Serves as the default hash function.
(Overrides Object.GetHashCode())
GetType()Gets the Type of the current instance.
(Inherited from Object)
MemberwiseClone()Creates a shallow copy of the current Object.
(Inherited from Object)
ToString()Returns a string that represents the current object.
(Overrides Object.ToString())
ToSystemName(String)Creates a name for this format, usable by the underlying platform.

Operators

Equality(DataFormat, DataFormat)Compares two instances of DataFormat for equality.
Inequality(DataFormat, DataFormat)Compares two instances of DataFormat for inequality.

See Also

Reference

Avalonia.Input Namespace