FontConverter.FontNameConverter.GetStandardValuesExclusive 方法

定義

判斷從 GetStandardValues 方法所傳回的標準值清單是否為獨佔清單。

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

public:
 override bool GetStandardValuesExclusive(System::ComponentModel::ITypeDescriptorContext ^ context);
public override bool GetStandardValuesExclusive (System.ComponentModel.ITypeDescriptorContext context);
public override bool GetStandardValuesExclusive (System.ComponentModel.ITypeDescriptorContext? context);
override this.GetStandardValuesExclusive : System.ComponentModel.ITypeDescriptorContext -> bool
Public Overrides Function GetStandardValuesExclusive (context As ITypeDescriptorContext) As Boolean

參數

context
ITypeDescriptorContext

ITypeDescriptorContext,可以用來擷取環境的其他資訊,而這個轉換子就是從這個環境叫用的。 這可能是 null,所以您要隨時檢查。 此外,內容物件上的屬性可能會傳回 null

傳回

如果從 GetStandardValues 傳回的集合是可能值的獨佔清單,則為 true;否則為 false。 預設為 false

備註

如果清單是獨佔的,則沒有其他值有效,例如在列舉數據類型中。 如果清單不是獨佔的,則除了標準值清單提供之外,還有其他有效值 GetStandardValues

適用於