Skip to main content

CanConvertTo(ITypeDescriptorContext, Type) Method

Checks whether or not this class can convert to a given type.

Definition​

Namespace: Avalonia.Controls
Assembly: Avalonia.Controls.DataGrid (in Avalonia.Controls.DataGrid.dll)

public override bool CanConvertTo(
ITypeDescriptorContext? context,
Type? destinationType
)

Parameters​

  ITypeDescriptorContext
An ITypeDescriptorContext that provides a format context.
  Type
The Type being queried for support.

Return Value​

Boolean
true if this converter can convert to the provided type, false otherwise.

See Also​

Reference​

DataGridLengthConverter Class
CanConvertTo Overload
Avalonia.Controls Namespace