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

提供格式內容的 ITypeDescriptorContext,可用來擷取環境的其他資訊,而這個轉換子就是從此環境叫用。 這個參數或這個參數的屬性可為 null

傳回

TypeConverter.StandardValuesCollection,包含表示目前控制項之屬性名稱的字串集。 如果目前的控制項為 null,則會傳回空集合。 如果 context 參數為 null,則會傳回 null

備註

方法 GetStandardValuesTypeConverter.StandardValuesCollection 傳回集合,其中包含一組字串,代表目前控制項屬性的名稱。

context使用 參數來擷取叫用此轉換器之設計階段環境的其他資訊。 此參數可以是 null ,而內容物件上的屬性可以傳回 nullcontext如果 參數為 null ,這個方法會傳 null 回 。

適用於

另請參閱