Skip to main content

CanConvertFrom(ITypeDescriptorContext, Type) Method

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

Definition​

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

public override bool CanConvertFrom(
ITypeDescriptorContext? context,
Type sourceType
)

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 from the provided type, false otherwise.

See Also​

Reference​

DataGridLengthConverter Class
CanConvertFrom Overload
Avalonia.Controls Namespace