ListViewItemStateImageIndexConverter.GetStandardValues 方法

定义

检索一个集合,该集合包含此验证程序适用的数据类型的标准值集。

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

返回

一个集合,包含标准有效索引值集。 如果未发现图像列表,则该集合将包含一个值为 -1 的对象。 如果该数据类型不支持标准值集,该方法将返回 null

适用于