ImageKeyConverter.GetStandardValues(ITypeDescriptorContext) 方法

定义

返回与指定上下文关联的映像列表的标准映像键的集合。

public:
 override System::ComponentModel::TypeConverter::StandardValuesCollection ^ GetStandardValues(System::ComponentModel::ITypeDescriptorContext ^ 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

参数

context
ITypeDescriptorContext

提供 ITypeDescriptorContext 格式上下文,可用于提取有关要从中调用此类型转换器的环境的其他信息。 此参数或此参数的属性可以是 null

返回

包含标准映像键值集的 A TypeConverter.StandardValuesCollection

注解

如果未找到图像列表,并且 ImageKeyConverter 支持 null 作为标准值,该方法 GetStandardValues 将返回包含单个空字符串的集合。 如果未找到图像列表,并且 null 不支持作为标准值, GetStandardValues 则返回一个空集合。

适用于