Dela via


RibbonControlLengthConverter.ConvertFrom Method (ITypeDescriptorContext, CultureInfo, Object)

Converts the specified object to an instance of the RibbonControlLength structure.

Namespace:  Microsoft.Windows.Controls.Ribbon
Assembly:  RibbonControlsLibrary (in RibbonControlsLibrary.dll)

Syntax

'Declaration
Public Overrides Function ConvertFrom ( _
    context As ITypeDescriptorContext, _
    culture As CultureInfo, _
    value As Object _
) As Object
public override Object ConvertFrom(
    ITypeDescriptorContext context,
    CultureInfo culture,
    Object value
)
public:
virtual Object^ ConvertFrom(
    ITypeDescriptorContext^ context, 
    CultureInfo^ culture, 
    Object^ value
) override
abstract ConvertFrom : 
        context:ITypeDescriptorContext * 
        culture:CultureInfo * 
        value:Object -> Object 
override ConvertFrom : 
        context:ITypeDescriptorContext * 
        culture:CultureInfo * 
        value:Object -> Object 
public override function ConvertFrom(
    context : ITypeDescriptorContext, 
    culture : CultureInfo, 
    value : Object
) : Object

Parameters

Return Value

Type: System.Object
The converted value.

Exceptions

Exception Condition
ArgumentNullException

value is null.

ArgumentException

value is not a valid type that can be converted to type RibbonControlLength.

.NET Framework Security

See Also

Reference

RibbonControlLengthConverter Class

ConvertFrom Overload

Microsoft.Windows.Controls.Ribbon Namespace