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


In This Topic
    ConvertFrom(ITypeDescriptorContext,CultureInfo,Object) Method
    In This Topic
    Attempts to convert to a StackLength from the given object.
    Syntax
    'Declaration
     
    Public Overloads Overrides Function ConvertFrom( _
       ByVal typeDescriptorContext As ITypeDescriptorContext, _
       ByVal cultureInfo As CultureInfo, _
       ByVal source As Object _
    ) As Object
    'Usage
     
    Dim instance As StackLengthConverter
    Dim typeDescriptorContext As ITypeDescriptorContext
    Dim cultureInfo As CultureInfo
    Dim source As Object
    Dim value As Object
     
    value = instance.ConvertFrom(typeDescriptorContext, cultureInfo, source)
    public override object ConvertFrom( 
       ITypeDescriptorContext typeDescriptorContext,
       CultureInfo cultureInfo,
       object source
    )

    Parameters

    typeDescriptorContext
    The ITypeDescriptorContext for this call.
    cultureInfo
    The CultureInfo which is respected when converting.
    source
    The object to convert to a StackLength.

    Return Value

    The StackLength instance which was constructed.
    Exceptions
    ExceptionDescription
    An ArgumentNullException is thrown if the example object is null.
    An ArgumentException is thrown if the example object is not null and is not a valid type which can be converted to a StackLength.
    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 ConvertFrom(ITypeDescriptorContext,CultureInfo,Object)