ControlPropertyNameConverter.GetStandardValues Method (ITypeDescriptorContext)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Returns a collection of property names for the control within a designer that implements IDesignerHost when provided with a format context.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public override TypeConverter.StandardValuesCollection GetStandardValues(
	ITypeDescriptorContext context
)

Parameters

context
Type: System.ComponentModel.ITypeDescriptorContext

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 null.

Return Value

Type: System.ComponentModel.TypeConverter.StandardValuesCollection

A TypeConverter.StandardValuesCollection that contains a set of strings representing property names for the current control. If the current control is null, an empty collection is returned. If the context parameter is null, null is returned.

The GetStandardValues method returns a TypeConverter.StandardValuesCollection collection that contains a set of strings representing the names of the current control's properties.

Use the context parameter to extract additional information about the design-time environment from which this converter is invoked. This parameter can be null, and properties on the context object can return null. If the context parameter is null, this method returns null.

.NET Framework
Available since 2.0
Return to top
Show: