RibbonControlLengthConverter::ConvertFrom Method (ITypeDescriptorContext^, CultureInfo^, Object^)

.NET Framework (current version)
 

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

Namespace:   System.Windows.Controls.Ribbon
Assembly:  System.Windows.Controls.Ribbon (in System.Windows.Controls.Ribbon.dll)

public:
virtual Object^ ConvertFrom(
	ITypeDescriptorContext^ context,
	CultureInfo^ culture,
	Object^ value
) override

Parameters

context
Type: System.ComponentModel::ITypeDescriptorContext^

An object that provides a format context.

culture
Type: System.Globalization::CultureInfo^

The object to use as the current culture.

value
Type: System::Object^

The value to convert.

Return Value

Type: System::Object^

The converted value.

Exception Condition
ArgumentNullException

value is null.

ArgumentException

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

.NET Framework
Available since 4.5
Return to top
Show: