Class FontFamilyConverter
Provides a way to show list of font family names in subproperties.
Inheritance
Namespace: Syncfusion.Windows.Forms.Diagram
Assembly: Syncfusion.Diagram.Base.dll
Syntax
public class FontFamilyConverter : CollectionConverter
Constructors
FontFamilyConverter()
Declaration
public FontFamilyConverter()
Methods
GetStandardValues(ITypeDescriptorContext)
Returns a collection of standard values for the data type this type converter is designed for when provided with a format context.
Declaration
public override TypeConverter.StandardValuesCollection GetStandardValues(ITypeDescriptorContext context)
Parameters
Type | Name | Description |
---|---|---|
System.ComponentModel.ITypeDescriptorContext | context | An System.ComponentModel.ITypeDescriptorContext that provides a format context that can be used to extract additional information about the environment from which this converter is invoked. This parameter or properties of this parameter can be null . |
Returns
Type | Description |
---|---|
System.ComponentModel.TypeConverter.StandardValuesCollection | A System.ComponentModel.TypeConverter.StandardValuesCollection that holds a standard set of valid values, or null if the data type does not support a standard set of values. |
GetStandardValuesExclusive(ITypeDescriptorContext)
Returns whether the collection of standard values returned from System.ComponentModel.TypeConverter.GetStandardValues is an exclusive list of possible values, using the specified context.
Declaration
public override bool GetStandardValuesExclusive(ITypeDescriptorContext context)
Parameters
Type | Name | Description |
---|---|---|
System.ComponentModel.ITypeDescriptorContext | context | An System.ComponentModel.ITypeDescriptorContext that provides a format context. |
Returns
Type | Description |
---|---|
System.Boolean | langword_csharp_true if the System.ComponentModel.TypeConverter.StandardValuesCollection returned from System.ComponentModel.TypeConverter.GetStandardValues is an exhaustive list of possible values; langword_csharp_false if other values are possible. |
GetStandardValuesSupported(ITypeDescriptorContext)
Returns whether this object supports a standard set of values that can be picked from a list, using the specified context.
Declaration
public override bool GetStandardValuesSupported(ITypeDescriptorContext context)
Parameters
Type | Name | Description |
---|---|---|
System.ComponentModel.ITypeDescriptorContext | context | An System.ComponentModel.ITypeDescriptorContext that provides a format context. |
Returns
Type | Description |
---|---|
System.Boolean | true if System.ComponentModel.TypeConverter.GetStandardValues should be called to find a common set of values the object supports; otherwise, false. |
IsValid(ITypeDescriptorContext, Object)
Returns whether the given value object is valid for this type and for the specified context.
Declaration
public override bool IsValid(ITypeDescriptorContext context, object value)
Parameters
Type | Name | Description |
---|---|---|
System.ComponentModel.ITypeDescriptorContext | context | An System.ComponentModel.ITypeDescriptorContext that provides a format context. |
System.Object | value | The System.Object to test for validity. |
Returns
Type | Description |
---|---|
System.Boolean | langword_csharp_true if the specified value is valid for this object; otherwise, false. |