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.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.11.0.dll)

Syntax

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

Parameters

  • context
    Type: ITypeDescriptorContext

    The format context.

Return Value

Type: 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