ImageKeyConverter.GetStandardValuesSupported(ITypeDescriptorContext) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
判斷這個型別轉換子是否支援可以從清單中選取的標準值集合。
public:
override bool GetStandardValuesSupported(System::ComponentModel::ITypeDescriptorContext ^ context);
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
。
傳回
true
表示支援標準值清單,否則為 false
。 一律傳回 true
。
備註
如同 在 ImageKeyConverter 類別中實作, GetStandardValuesSupported 方法一律會傳 true
回 ,因為 ImageKeyConverter 支援可從清單中挑選之影像的標準索引值集。
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應