ControlPropertyNameConverter.GetStandardValuesSupported 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
使用指定的內容傳回值,指出這個物件是否支援可從清單中選擇的標準值集。
public:
override bool GetStandardValuesSupported(System::ComponentModel::ITypeDescriptorContext ^ context);
public override bool GetStandardValuesSupported(System.ComponentModel.ITypeDescriptorContext context);
override this.GetStandardValuesSupported : System.ComponentModel.ITypeDescriptorContext -> bool
Public Overrides Function GetStandardValuesSupported (context As ITypeDescriptorContext) As Boolean
參數
- context
- ITypeDescriptorContext
提供格式內容的 ITypeDescriptorContext,可用來擷取環境的其他資訊,而這個轉換子就是從此環境叫用。 這個參數或這個參數的屬性可為 null。
傳回
如果 context 參數不是 true 則為 null,否則為 false。
備註
方法 GetStandardValuesSupported 會傳回值,指出這個物件是否支援一組標準值。
參數 context 會擷取有關叫用這個轉換子之設計階段環境的其他資訊。 此參數可以是 null ,而內容物件上的屬性可以傳回 null 。
context如果 參數為 null ,這個方法會傳 false 回 。
給繼承者的注意事項
如果您想要轉換的類型支援標準值,請覆寫這個方法。