ImageFormatConverter.GetStandardValues(ITypeDescriptorContext) 方法

定义

获取一个集合,该集合包含此验证程序设计为的数据类型的一组标准值。 如果数据类型不支持标准值集,则返回 null

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

格式化程序上下文。 此对象可用于获取有关从中调用此转换器的环境的详细信息。 这可能是 null这样,因此应始终检查。 此外,上下文对象的属性也可能返回 null

返回

一个集合,其中包含一组标准的有效值,或 null。 默认实现始终返回 null

适用于