Share via


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

傳回

TypeConverter.StandardValuesCollection,包含標準的影像索引鍵值集合。

備註

如果找不到任何影像清單,且 ImageKeyConverter 支援 null 做為標準值,方法會 GetStandardValues 傳回包含單一空字串的集合。 如果找不到任何影像清單,而且 null 不支援作為標準值,則會 GetStandardValues 傳回空的集合。

適用於