Export (0) Print
Expand All

ArrayEditor Class

Provides a user interface for editing arrays at design time.

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

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

[Visual Basic]
Public Class ArrayEditor
   Inherits CollectionEditor
[C#]
public class ArrayEditor : CollectionEditor
[C++]
public __gc class ArrayEditor : public CollectionEditor
[JScript]
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.

Remarks

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

Example

[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()
    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] 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.

Requirements

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

Show:
© 2014 Microsoft