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)
- C#
- VB
- F#
public override bool CanConvertFrom(
ITypeDescriptorContext context,
Type sourceType
)
Public Overrides Function CanConvertFrom (
context As ITypeDescriptorContext,
sourceType As Type
) As Boolean
abstract CanConvertFrom :
context : ITypeDescriptorContext *
sourceType : Type -> bool
override CanConvertFrom :
context : ITypeDescriptorContext *
sourceType : Type -> bool
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