FontConverter.FontNameConverter.GetStandardValues(ITypeDescriptorContext) FontConverter.FontNameConverter.GetStandardValues(ITypeDescriptorContext) FontConverter.FontNameConverter.GetStandardValues(ITypeDescriptorContext) FontConverter.FontNameConverter.GetStandardValues(ITypeDescriptorContext) Method

定義

擷取含有資料型別之標準值集的集合,這個轉換子是針對該資料型別所設計。Retrieves a collection containing a set of standard values for the data type this converter is designed for.

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

public:
 override System::ComponentModel::TypeConverter::StandardValuesCollection ^ GetStandardValues(System::ComponentModel::ITypeDescriptorContext ^ context);
public override System.ComponentModel.TypeConverter.StandardValuesCollection GetStandardValues (System.ComponentModel.ITypeDescriptorContext context);
override this.GetStandardValues : System.ComponentModel.ITypeDescriptorContext -> System.ComponentModel.TypeConverter.StandardValuesCollection
Public Overrides Function GetStandardValues (context As ITypeDescriptorContext) As TypeConverter.StandardValuesCollection

參數

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.

傳回

包含有效值之標準集的集合,或是 nullA collection containing a standard set of valid values, or null. 預設為 nullThe default is null.

適用於