ColorConverter.GetStandardValues(ITypeDescriptorContext) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Retrieves a collection containing a set of standard values for the data type for which this validator is designed. This will return null
if the data type does not support a standard set of values.
public:
override System::ComponentModel::TypeConverter::StandardValuesCollection ^ GetStandardValues(System::ComponentModel::ITypeDescriptorContext ^ context);
public override System.ComponentModel.TypeConverter.StandardValuesCollection GetStandardValues (System.ComponentModel.ITypeDescriptorContext context);
public override System.ComponentModel.TypeConverter.StandardValuesCollection GetStandardValues (System.ComponentModel.ITypeDescriptorContext? context);
override this.GetStandardValues : System.ComponentModel.ITypeDescriptorContext -> System.ComponentModel.TypeConverter.StandardValuesCollection
Public Overrides Function GetStandardValues (context As ITypeDescriptorContext) As TypeConverter.StandardValuesCollection
Parameters
- context
- ITypeDescriptorContext
A formatter context. Use this object to extract additional information about the environment from which this converter is being invoked. Always check whether this value is null
. Also, properties on the context object may return null
.
Returns
A collection containing null
or a standard set of valid values. The default implementation always returns null
.