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

適用於