ColorConverter.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

格式子 (Formatter) 內容。 使用這個物件來擷取正在叫用這個轉換子之來源環境的相關額外資訊。 永遠檢查這個值是否為 null。 此外,內容物件上的屬性可能會傳回 null

傳回

包含 null 的集合,或有效值的標準集。 預設的實作 (Implementation) 一定會傳回 null

適用於