ערוך

שתף באמצעות


ControlIDConverter.GetStandardValues(ITypeDescriptorContext) Method

Definition

Returns a collection of control IDs from the container within the 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 holds a set of strings representing the control IDs of the controls in the current container. If no controls are currently contained, an empty collection is returned. If the context is null or there is no current container, then null is returned.

Remarks

The FilterControl method is called on each control found in the container. The control ID is only added to the TypeConverter.StandardValuesCollection if the method returns true.

Applies to

See also