HypernovaDesktop Components · docs
Binarymission
WPFRibbon › BinaryRibbonControlGroupSizingOrderConverter

BinaryRibbonControlGroupSizingOrderConverter

class.NET 6 / 8 / 10.NET Framework 4.8Binarymission.WPF.Controls.Office

A custom type converter class for internal use.

public class BinaryRibbonControlGroupSizingOrderConverter : TypeConverter

Inherits from / implements: TypeConverter

Members at a glance

CanConvertFromReturns whether this converter can convert an object of the given type to the type of this converter, using the specified context.
ConvertFromConverts the given object to the type of this converter, using the specified context and culture information.

Methods

CanConvertFrom

public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)

Returns whether this converter can convert an object of the given type to the type of this converter, using the specified context.

context
An ITypeDescriptorContext that provides a format context.
sourceType
A Type that represents the type you want to convert from.

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

ConvertFrom

public override object ConvertFrom(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value)

Converts the given object to the type of this converter, using the specified context and culture information.

context
An ITypeDescriptorContext that provides a format context.
culture
The CultureInfo to use as the current culture.
value
The Object to convert.

Returns. An Object that represents the converted value.

NotSupportedException
The conversion cannot be performed.