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一个包含一组字符串,表示当前容器中控件的控件 ID。 如果当前未包含任何控件,则返回一个空集合。 如果上下文不存在 null 或没有当前容器,则 null 返回。

注解

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

适用于

另请参阅