ControlPropertyNameConverter.GetStandardValuesSupported 方法

定義

使用指定的內容傳回值,指出這個物件是否支援可從清單中選擇的標準值集。

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 ,而內容物件上的屬性可以傳回 nullcontext如果 參數為 null ,這個方法會傳 false 回 。

給繼承者的注意事項

如果您想要轉換的類型支援標準值,請覆寫這個方法。

適用於

另請參閱