DataFormat Class
Represents a format usable with the clipboard and drag-and-drop.
Definition
Namespace: Avalonia.Input
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public abstract class DataFormat : IEquatable<DataFormat>
Public MustInherit Class DataFormat
Implements IEquatable(Of DataFormat)
[<AbstractClassAttribute>]
type DataFormat =
class
interface IEquatable<DataFormat>
end
Inheritance | Object → DataFormat |
Derived | Avalonia.Input.DataFormat(T) |
Implements | IEquatable(DataFormat) |
Properties
File | Gets a data format representing a single file. Its data type is IStorageItem. |
Identifier | Gets the identifier of the data format. |
Kind | Gets the kind of the data format. |
Text | Gets 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. |