Xceed Toolkit Plus for WPF v5.0 Documentation
Xceed.Wpf.Toolkit Assembly / Xceed.Wpf.Toolkit.Panels Namespace / StackLengthConverter Class / CanConvertFrom Method / CanConvertFrom(ITypeDescriptorContext,Type) Method
The ITypeDescriptorContext for this call.
The Type being queried for support.


In This Topic
    CanConvertFrom(ITypeDescriptorContext,Type) Method
    In This Topic
    Checks whether or not this class can convert from a given type.
    Syntax
    'Declaration
     
    Public Overloads Overrides Function CanConvertFrom( _
       ByVal typeDescriptorContext As ITypeDescriptorContext, _
       ByVal sourceType As Type _
    ) As Boolean
    'Usage
     
    Dim instance As StackLengthConverter
    Dim typeDescriptorContext As ITypeDescriptorContext
    Dim sourceType As Type
    Dim value As Boolean
     
    value = instance.CanConvertFrom(typeDescriptorContext, sourceType)
    public override bool CanConvertFrom( 
       ITypeDescriptorContext typeDescriptorContext,
       Type sourceType
    )

    Parameters

    typeDescriptorContext
    The ITypeDescriptorContext for this call.
    sourceType
    The Type being queried for support.

    Return Value

    true if thie converter can convert from the provided type, 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

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