ControlPropertyNameConverter.GetStandardValues(ITypeDescriptorContext) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回设计器中控件的属性名称集合,该集合在提供格式上下文时实现 IDesignerHost 。
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一个包含一组表示当前控件的属性名称的字符串。 如果当前控件为 null,则返回一个空集合。 如果参数 context 为 null, null 则返回。
注解
该方法 GetStandardValues 返回一个集合,该集合包含一 TypeConverter.StandardValuesCollection 组表示当前控件属性的名称的字符串。
使用 context 参数提取有关从中调用此转换器的设计时环境的其他信息。 此参数可以是 null,上下文对象的属性可以返回 null。 如果参数 context 为 null,则此方法返回 null。