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が返されます。

注釈

GetStandardValues メソッドは、現在のコントロールのプロパティの名前を表す文字列のセットを含むTypeConverter.StandardValuesCollection コレクションを返します。

このコンバーターの呼び出し元のデザイン時環境に関する追加情報を抽出するには、 context パラメーターを使用します。 このパラメーターは nullでき、コンテキスト オブジェクトのプロパティは nullを返すことができます。 context パラメーターがnull場合、このメソッドはnullを返します。

適用対象

こちらもご覧ください