Skip to main content

GetItems Method

Gets the list of IDataTransferItem contained in this object, filtered by a given format.

Definition

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

public static IEnumerable<IDataTransferItem> GetItems(
this IDataTransfer dataTransfer,
DataFormat format
)
View Source

Parameters

  IDataTransfer
 
  DataFormat
 

Return Value

IEnumerable(IDataTransferItem)

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IDataTransfer. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Remarks

Some platforms (such as Windows and X11) may only support a single data item for all formats except File.

Items returned by this property must stay valid until the IDataTransfer is disposed.

See Also

Reference

DataTransferExtensions Class
Avalonia.Input Namespace