RibbonControlLengthConverter::CanConvertFrom Method (ITypeDescriptorContext^, Type^)

.NET Framework (current version)
 

Determines whether an instance of the specified type can be converted 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 bool CanConvertFrom(
	ITypeDescriptorContext^ context,
	Type^ sourceType
) override

Parameters

context
Type: System.ComponentModel::ITypeDescriptorContext^

An object that provides a format context.

sourceType
Type: System::Type^

The type to convert from.

Return Value

Type: System::Boolean

true if this converter can perform the conversion; otherwise, false.

This converter can convert from string, integer, and floating point types.

.NET Framework
Available since 4.5
Return to top
Show: