Skip to main content

Contains Method

Gets whether a IDataTransfer supports a specific format.

Definition

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

public static bool Contains(
this IDataTransfer dataTransfer,
DataFormat format
)

Parameters

  IDataTransfer
The IDataTransfer instance.
  DataFormat
The format to check.

Return Value

Boolean
true if format is supported, false otherwise.

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).

See Also

Reference

DataTransferExtensions Class
Avalonia.Input Namespace