This documentation is archived and is not being maintained.

TypeConverter.GetStandardValues Method (ITypeDescriptorContext)

.NET Framework 1.1

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

[Visual Basic]
Overloads Public Overridable Function GetStandardValues( _
   ByVal context As ITypeDescriptorContext _
) As StandardValuesCollection
[C#]
public virtual StandardValuesCollection GetStandardValues(
   ITypeDescriptorContext context
);
[C++]
public: virtual StandardValuesCollection* GetStandardValues(
   ITypeDescriptorContext* context
);
[JScript]
public function GetStandardValues(
   context : ITypeDescriptorContext
) : StandardValuesCollection;

Parameters

context
An 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 a null reference (Nothing in Visual Basic).

Return Value

A TypeConverter.StandardValuesCollection that holds a standard set of valid values, or a null reference (Nothing in Visual Basic) if the data type does not support a standard set of values.

Remarks

As implemented in TypeConverter, this method always returns a null reference (Nothing in Visual Basic).

Notes to Inheritors:  Override this method if the type you want to convert supports standard values.

Example

For an example on this function, see the sample in TypeConverter.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

TypeConverter Class | TypeConverter Members | System.ComponentModel Namespace | TypeConverter.GetStandardValues Overload List | ITypeDescriptorContext

Show: