This documentation is archived and is not being maintained.

ArrayEditor Class

Provides a user interface for editing arrays at design time.

For a list of all members of this type, see ArrayEditor Members.


[Visual Basic]
Public Class ArrayEditor
   Inherits CollectionEditor
public class ArrayEditor : CollectionEditor
public __gc class ArrayEditor : public CollectionEditor
public class ArrayEditor extends CollectionEditor

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


This editor can be used to edit arrays within the design-time environment.


[Visual Basic, C#, C++] The following code example demonstrates applying an System.ComponentModel.Design.EditorAttribute to a property.

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

[EditorAttribute(typeof(System.ComponentModel.Design.ArrayEditor), typeof(System.Drawing.Design.UITypeEditor))]
public object[] componentArray
        return compArray;
        compArray = value;
private object[] compArray;

   __property Object* get_componentArray()[]
      return compArray;
   __property void set_componentArray( Object* value[] )
      compArray = value;

   Object* compArray[];

[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button Language Filter in the upper-left corner of the page.


Namespace: System.ComponentModel.Design

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: System.Design (in System.Design.dll)

See Also

ArrayEditor Members | System.ComponentModel.Design Namespace | CollectionEditor