Share via


ModelingEnumerationConverter.GetStandardValues Method (ITypeDescriptorContext)

Returns a collection of standard values for the data type this type converter is designed for when provided with a format context.

Namespace:  Microsoft.VisualStudio.Modeling.Design
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)

Syntax

'Declaration
Public Overrides Function GetStandardValues ( _
    context As ITypeDescriptorContext _
) As TypeConverter.StandardValuesCollection
public override TypeConverter.StandardValuesCollection GetStandardValues(
    ITypeDescriptorContext context
)
public:
virtual TypeConverter::StandardValuesCollection^ GetStandardValues(
    ITypeDescriptorContext^ context
) override
abstract GetStandardValues : 
        context:ITypeDescriptorContext -> TypeConverter.StandardValuesCollection  
override GetStandardValues : 
        context:ITypeDescriptorContext -> TypeConverter.StandardValuesCollection
public override function GetStandardValues(
    context : ITypeDescriptorContext
) : TypeConverter.StandardValuesCollection

Parameters

Return Value

Type: System.ComponentModel.TypeConverter.StandardValuesCollection
A collection that contains the standard set of values for the enumeration.

Remarks

This method uses the Enum.GetValues method to get the standard values and uses the Comparer type to sort the values.

By default, the culture parameter is ignored.

Notes to Inheritors

Override this method to provide your own set of standard values.

.NET Framework Security

See Also

Reference

ModelingEnumerationConverter Class

GetStandardValues Overload

Microsoft.VisualStudio.Modeling.Design Namespace