Spread Windows Forms 17
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread.CellType Namespace / DesignTimeCellTypeConverter Class / CanConvertTo Method / CanConvertTo(ITypeDescriptorContext,Type) Method
Type descriptor context
Type


In This Topic
    CanConvertTo(ITypeDescriptorContext,Type) Method
    In This Topic
    Returns a value that indicates whether a cell type object can be converted to the specified type.
    Syntax
    'Declaration
     
    
    Public Overloads Overridable Function CanConvertTo( _
       ByVal context As ITypeDescriptorContext, _
       ByVal destinationType As Type _
    ) As Boolean
    'Usage
     
    
    Dim instance As DesignTimeCellTypeConverter
    Dim context As ITypeDescriptorContext
    Dim destinationType As Type
    Dim value As Boolean
     
    value = instance.CanConvertTo(context, destinationType)
    public virtual bool CanConvertTo( 
       ITypeDescriptorContext context,
       Type destinationType
    )

    Parameters

    context
    Type descriptor context
    destinationType
    Type

    Return Value

    True if a border object can be converted to the specified type, and false otherwise.
    See Also