FontConverter.FontNameConverter.GetStandardValuesExclusive(ITypeDescriptorContext) FontConverter.FontNameConverter.GetStandardValuesExclusive(ITypeDescriptorContext) FontConverter.FontNameConverter.GetStandardValuesExclusive(ITypeDescriptorContext) FontConverter.FontNameConverter.GetStandardValuesExclusive(ITypeDescriptorContext) Method

定義

判斷從 GetStandardValues 方法所傳回的標準值清單是否為獨佔清單。Determines if the list of standard values returned from the GetStandardValues method is an exclusive list.

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

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 ITypeDescriptorContext ITypeDescriptorContext

ITypeDescriptorContext,可以用來擷取環境的其他資訊,而這個轉換子就是從這個環境叫用的。An ITypeDescriptorContext that can be used to extract additional information about the environment this converter is being invoked from. 這可能是 null,所以您要隨時檢查。This may be null, so you should always check. 此外,內容物件上的屬性可能會傳回 nullAlso, properties on the context object may return null.

傳回

如果從 GetStandardValues 傳回的集合是可能值的獨佔清單,則為 true;否則為 falsetrue if the collection returned from GetStandardValues is an exclusive list of possible values; otherwise, false. 預設為 falseThe default is false.

備註

如果清單是獨佔的則沒有其他值會是有效的例如在列舉型別資料型別。If the list is exclusive, no other values are valid, such as in an enumeration data type. 如果清單不是獨佔的則有其他有效的值以外的標準值清單GetStandardValues提供。If the list is not exclusive, then there are other valid values besides the list of standard values GetStandardValues provides.

適用於