Xceed DataGrid for WPF v7.2 Documentation
CanConvertFrom(ITypeDescriptorContext,Type) Method


Xceed.Wpf.DataGrid Assembly > Xceed.Wpf.DataGrid.Converters Namespace > ColumnWidthConverter Class > CanConvertFrom Method : CanConvertFrom(ITypeDescriptorContext,Type) Method
An ITypeDescriptorContext that provides the format context to use.
The type to convert from.
Retrieves a value indicating whether the specified type can be converted to a ColumnWidth structure, using the provided context.
Syntax
'Declaration
 
Public Overloads Overrides Function CanConvertFrom( _

   ByVal context As ITypeDescriptorContext, _

   ByVal sourceType As Type _

) As Boolean
'Usage
 
Dim instance As ColumnWidthConverter

Dim context As ITypeDescriptorContext

Dim sourceType As Type

Dim value As Boolean

 

value = instance.CanConvertFrom(context, sourceType)
public override bool CanConvertFrom( 

   ITypeDescriptorContext context,

   Type sourceType

)

Parameters

context
An ITypeDescriptorContext that provides the format context to use.
sourceType
The type to convert from.

Return Value

true if the specified sourceType can be converted to a ColumnWidth structure; false otherwise.
Requirements

Target Platforms: Windows 11, Windows, 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ColumnWidthConverter Class
ColumnWidthConverter Members
Overload List
Base Implementation in CanConvertFrom(ITypeDescriptorContext,Type)