ControlIDConverter.GetStandardValues(ITypeDescriptorContext) 方法

定义

当随格式上下文一起提供时,返回来自 IDesignerHost 中的容器的控件 ID 集合。

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

参数

context
ITypeDescriptorContext

提供格式上下文的 ITypeDescriptorContext,可用来提取有关从中调用此转换器的环境的附加信息。 此参数或其属性可以为 null

返回

TypeConverter.StandardValuesCollection

一个 TypeConverter.StandardValuesCollection,保存一组表示当前容器中控件的控件 ID 的字符串。 如果当前未包含任何控件,则返回空集合。 如果上下文为 null 或是无当前容器,则返回 null

注解

FilterControl 容器中找到的每个控件上调用该方法。 仅当方法返回true时,控件 ID 才会添加到TypeConverter.StandardValuesCollection该控件 ID 中。

适用于

另请参阅