語言

ControlPropertyNameConverter.GetStandardValues(ITypeDescriptorContext) 方法

定義

在提供格式上下文時,會回傳一組控制項的屬性名稱,設計器會 IDesignerHost 實作。

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

An ITypeDescriptorContext 提供一個格式上下文,可用來提取關於該轉換器所從環境的額外資訊。 這個參數或其性質可以是 null。

傳回

TypeConverter.StandardValuesCollection A 包含一組字串,代表當前控制項的屬性名稱。 若目前控制為 null,則回傳一個空集合。 若 context 參數為 null, null 則回傳。

備註

該 GetStandardValues 方法回傳一個 TypeConverter.StandardValuesCollection 集合,包含一組字串,代表當前控制項屬性的名稱。

利用參數 context 擷取關於該轉換器所從的設計時環境獲取額外資訊。 此參數可為 null,上下文物件上的屬性可回傳 null。 若參數 context 為 null,此方法返回 null。

適用於

另請參閱