Xceed Toolkit Plus for WPF v5.0 Documentation
Xceed.Wpf.Toolkit Assembly / Xceed.Wpf.Toolkit.Panels Namespace / StackLengthConverter Class / ConvertTo Method / ConvertTo(ITypeDescriptorContext,CultureInfo,Object,Type) Method
The ITypeDescriptorContext for this call.
The CultureInfo which is respected when converting.
The StackLength to convert.
The type to which to convert the StackLength instance.


In This Topic
    ConvertTo(ITypeDescriptorContext,CultureInfo,Object,Type) Method
    In This Topic
    Attempts to convert a StackLength instance to the given type.
    Syntax
    'Declaration
     
    Public Overloads Overrides Function ConvertTo( _
       ByVal typeDescriptorContext As ITypeDescriptorContext, _
       ByVal cultureInfo As CultureInfo, _
       ByVal value As Object, _
       ByVal destinationType As Type _
    ) As Object
    'Usage
     
    Dim instance As StackLengthConverter
    Dim typeDescriptorContext As ITypeDescriptorContext
    Dim cultureInfo As CultureInfo
    Dim value As Object
    Dim destinationType As Type
    Dim value As Object
     
    value = instance.ConvertTo(typeDescriptorContext, cultureInfo, value, destinationType)

    Parameters

    typeDescriptorContext
    The ITypeDescriptorContext for this call.
    cultureInfo
    The CultureInfo which is respected when converting.
    value
    The StackLength to convert.
    destinationType
    The type to which to convert the StackLength instance.

    Return Value

    The object which was constructed.
    Exceptions
    ExceptionDescription
    An ArgumentNullException is thrown if the example object is null.
    An ArgumentException is thrown if the object is not null and is not a StackLength, or if the destinationType isn't one of the valid destination types.
    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 ConvertTo(ITypeDescriptorContext,CultureInfo,Object,Type)