ControlPropertyNameConverter.GetStandardValues(ITypeDescriptorContext) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a collection of property names for the control within a designer that implements IDesignerHost when provided with a format context.
public:
override System::ComponentModel::TypeConverter::StandardValuesCollection ^ GetStandardValues(System::ComponentModel::ITypeDescriptorContext ^ context);
public override System.ComponentModel.TypeConverter.StandardValuesCollection GetStandardValues (System.ComponentModel.ITypeDescriptorContext context);
override this.GetStandardValues : System.ComponentModel.ITypeDescriptorContext -> System.ComponentModel.TypeConverter.StandardValuesCollection
Public Overrides Function GetStandardValues (context As ITypeDescriptorContext) As TypeConverter.StandardValuesCollection
Parameters
- context
- 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
.
Returns
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.
Remarks
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
.
Applies to
See also
.NET