Skip to main content

GetItems Method

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

Definition

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

public static IEnumerable<IAsyncDataTransferItem> GetItems(
this IAsyncDataTransfer dataTransfer,
DataFormat format
)
View Source

Parameters

  IAsyncDataTransfer
 
  DataFormat
 

Return Value

IEnumerable(IAsyncDataTransferItem)

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IAsyncDataTransfer. 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 IAsyncDataTransfer is disposed.

See Also

Reference

AsyncDataTransferExtensions Class
Avalonia.Input Namespace