次の方法で共有


ArrayEditor クラス

デザイン時に配列を編集するためのユーザー インターフェイスを提供します。

この型のすべてのメンバの一覧については、ArrayEditor メンバ を参照してください。

System.Object
   System.Drawing.Design.UITypeEditor
      System.ComponentModel.Design.CollectionEditor
         System.ComponentModel.Design.ArrayEditor

Public Class ArrayEditor
   Inherits CollectionEditor
[C#]
public class ArrayEditor : CollectionEditor
[C++]
public __gc class ArrayEditor : public CollectionEditor
[JScript]
public class ArrayEditor extends CollectionEditor

スレッドセーフ

この型の public static (Visual Basicでは Shared) のすべてのメンバは、マルチスレッド操作で安全に使用できます。インスタンスのメンバの場合は、スレッドセーフであるとは限りません。

解説

このエディタを使用すると、デザイン時の環境で配列を編集できます。

使用例

[Visual Basic, C#, C++] System.ComponentModel.Design.EditorAttribute をプロパティに適用するコード例を次に示します。

 
<EditorAttribute(GetType(ArrayEditor), GetType(System.Drawing.Design.UITypeEditor))> _
Public Property componentArray() As Object()
    Get
        Return compArray
    End Get
    Set(ByVal Value As Object())
        compArray = Value
    End Set
End Property
Private compArray() As Object

[C#] 
[EditorAttribute(typeof(System.ComponentModel.Design.ArrayEditor), typeof(System.Drawing.Design.UITypeEditor))]
public object[] componentArray
{
    get
    {
        return compArray;
    }
    set
    {
        compArray = value;
    }
}
private object[] compArray;

[C++] 
public:
   [EditorAttribute(__typeof(System::ComponentModel::Design::ArrayEditor),
      __typeof(System::Drawing::Design::UITypeEditor))]
   __property Object* get_componentArray()[]
   {
      return compArray;
   }
   __property void set_componentArray( Object* value[] )
   {
      compArray = value;
   }

private:
   Object* compArray[];

[JScript] JScript のサンプルはありません。Visual Basic、C#、および C++ のサンプルを表示するには、このページの左上隅にある言語のフィルタ ボタン 言語のフィルタ をクリックします。

必要条件

名前空間: System.ComponentModel.Design

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

アセンブリ: System.Design (System.Design.dll 内)

参照

ArrayEditor メンバ | System.ComponentModel.Design 名前空間 | CollectionEditor