DataGridLengthConverter.

CanConvertFrom(ITypeDescriptorContext, Type) Method

Summary

Checks whether or not this class can convert from a given type.
Namespace
Avalonia.Controls
Containing Type
DataGridLengthConverter

Syntax

public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)

Parameters

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

Return Value

Type Description
bool true if this converter can convert from the provided type, false otherwise.