次の方法で共有


SizeConverter.GetProperties メソッド (ITypeDescriptorContext, Object, Attribute )

この型のプロパティ セットを取得します。既定では、型はプロパティを返しません。このメソッドの簡単な実装を用意すると、適切なデータ型の TypeDescriptor.GetProperties メソッドを呼び出すことができます。

Overrides Overloads Public Function GetProperties( _
   ByVal context As ITypeDescriptorContext, _   ByVal value As Object, _   ByVal attributes() As Attribute _) As PropertyDescriptorCollection
[C#]
public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContextcontext,objectvalue,Attribute[] attributes);
[C++]
public: PropertyDescriptorCollection* GetProperties(ITypeDescriptorContext* context,Object* value,Attribute* attributes[]);
[JScript]
public override function GetProperties(
   context : ITypeDescriptorContext,value : Object,attributes : Attribute[]) : PropertyDescriptorCollection;

パラメータ

  • context
    追加のコンテキストが提供されるときに使用する型記述子。
  • value
    プロパティを取得する対象となるオブジェクトの値。
  • attributes
    プロパティを説明する MemberAttribute オブジェクトの配列。

戻り値

このデータ型で公開する必要があるプロパティ セット。プロパティを公開する必要がない場合は、 null 参照 (Visual Basic では Nothing) を返すことがあります。既定の実装は、常に null 参照 (Nothing) を返します。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

参照

SizeConverter クラス | SizeConverter メンバ | System.Drawing 名前空間 | SizeConverter.GetProperties オーバーロードの一覧