BinaryRibbonControlGroupSizingOrderConverter
class.NET 6 / 8 / 10.NET Framework 4.8Binarymission.WPF.Controls.Office
Reads a comma-separated list of names into a StringCollection,
for the ribbon tab's own record of the order in which its groups give up width.
public class BinaryRibbonControlGroupSizingOrderConverter : TypeConverter
Inherits from / implements: TypeConverter
Remarks
The ribbon uses it internally; no public property takes its result.
Members at a glance
| Methods | |
|---|---|
CanConvertFrom | Reports whether a value of the given type can be read: only a string can. |
ConvertFrom | Splits a comma-separated list of names into a StringCollection. |
Methods
CanConvertFrom
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Reports whether a value of the given type can be read: only a string can.
Parameters
context- Not used.
sourceType- The type of the value.
Returns
true for string; otherwise false.
ConvertFrom
public override object ConvertFrom(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value)
Splits a comma-separated list of names into a StringCollection.
Parameters
context- Not used.
culture- Not used.
value- The text.
Returns
The names in the order given, untrimmed, or null for text that is only white
space.
Exceptions
System.NotSupportedExceptionvalueisnull, empty or not a string.