ColorConverter.GetStandardValues Method (ITypeDescriptorContext)

Retrieves a collection containing a set of standard values for the data type for which this validator is designed. This will return a null reference (Nothing in Visual Basic) if the data type does not support a standard set of values.

Namespace: System.Drawing
Assembly: System.Drawing (in system.drawing.dll)

public:
virtual StandardValuesCollection^ GetStandardValues (
	ITypeDescriptorContext^ context
) override
public StandardValuesCollection GetStandardValues (
	ITypeDescriptorContext context
)
public override function GetStandardValues (
	context : ITypeDescriptorContext
) : StandardValuesCollection
Not applicable.

Parameters

context

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 a null reference (Nothing in Visual Basic). Also, properties on the context object may return a null reference (Nothing in Visual Basic).

Return Value

A collection containing a null reference (Nothing in Visual Basic) or a standard set of valid values. The default implementation always returns a null reference (Nothing in Visual Basic).

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions

ADD
Show: