다음을 통해 공유


ArrayEditor 클래스

디자인 타임에서 배열을 편집하기 위해 사용자 인터페이스를 제공합니다.

네임스페이스: System.ComponentModel.Design
어셈블리: System.Design(system.design.dll)

구문

‘선언
Public Class ArrayEditor
    Inherits CollectionEditor
‘사용 방법
Dim instance As ArrayEditor
public class ArrayEditor : CollectionEditor
public ref class ArrayEditor : public CollectionEditor
public class ArrayEditor extends CollectionEditor
public class ArrayEditor extends CollectionEditor

설명

이 편집기는 디자인 타임 환경에서 배열을 편집하는 데 사용할 수 있습니다.

예제

다음 코드 예제에서는 속성에 System.ComponentModel.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
[EditorAttribute(typeof(System.ComponentModel.Design.ArrayEditor), typeof(System.Drawing.Design.UITypeEditor))]
public object[] componentArray
{
    get
    {
        return compArray;
    }
    set
    {
        compArray = value;
    }
}
private object[] compArray;
public:
   property array<Object^>^ componentArray 
   {
      [EditorAttribute(System::ComponentModel::Design::ArrayEditor::typeid,
         System::Drawing::Design::UITypeEditor::typeid)]
      array<Object^>^ get()
      {
         return compArray;
      }
      void set( array<Object^>^ value )
      {
         compArray = value;
      }
   }
private:
   array<Object^>^compArray;
/** @attribute EditorAttribute(System.ComponentModel.Design.ArrayEditor.
    class,System.Drawing.Design.UITypeEditor.class)
 */
/** @property 
 */
public Object[] get_componentArray()
{
    return compArray;
}//get_componentArray

/** @property
 */
public void set_componentArray(Object value[])
{
    compArray = value;
}//set_componentArray

private Object compArray[];

상속 계층 구조

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

스레드로부터의 안전성

이 형식의 모든 public static(Visual Basic의 경우 Shared) 멤버는 스레드로부터 안전합니다. 인터페이스 멤버는 스레드로부터 안전하지 않습니다.

플랫폼

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

.NET Framework에서 모든 플래폼의 모든 버전을 지원하지는 않습니다. 지원되는 버전의 목록은 시스템 요구 사항을 참조하십시오.

버전 정보

.NET Framework

2.0, 1.1, 1.0에서 지원

참고 항목

참조

ArrayEditor 멤버
System.ComponentModel.Design 네임스페이스
CollectionEditor