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)
- C#
- VB
- F#
public sealed class DataFormat<T> : DataFormat
where T : class
Public NotInheritable Class DataFormat(Of T As Class)
Inherits DataFormat
[<SealedAttribute>]
type DataFormat<'T when 'T : not struct> =
class
inherit DataFormat
end
Inheritance | Object → 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
Identifier | Gets the identifier of the data format. (Inherited from DataFormat) |
Kind | Gets 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) |