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
CanConvertFrom | Returns whether this converter can convert an object of the given type to the type of this converter, using the specified context. |
ConvertFrom | Converts 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
ITypeDescriptorContextthat provides a format context. - sourceType
- A
Typethat 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
ITypeDescriptorContextthat provides a format context. - culture
- The
CultureInfoto use as the current culture. - value
- The
Objectto convert.
Returns. An Object that represents the converted value.
- NotSupportedException
- The conversion cannot be performed.