ArrayEditor 类 
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
提供用于在设计时编辑数组的用户界面。
public ref class ArrayEditor : System::ComponentModel::Design::CollectionEditor
	public class ArrayEditor : System.ComponentModel.Design.CollectionEditor
	type ArrayEditor = class
    inherit CollectionEditor
	Public Class ArrayEditor
Inherits CollectionEditor
		- 继承
 
示例
下面的代码示例演示如何将 应用于 System.ComponentModel.EditorAttribute 属性。
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;
[EditorAttribute(typeof(System.ComponentModel.Design.ArrayEditor), typeof(System.Drawing.Design.UITypeEditor))]
public object[] componentArray
{
    get
    {
        return compArray;
    }
    set
    {
        compArray = value;
    }
}
private object[] compArray;
<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
	注解
此编辑器可用于在设计时环境中编辑数组。
构造函数
| ArrayEditor(Type) | 
		 使用数组的指定数据类型初始化 ArrayEditor 的新实例。  | 
        	
属性
| CollectionItemType | 
		 获取集合中每项的数据类型。 (继承自 CollectionEditor) | 
        	
| CollectionType | 
		 获取集合对象的数据类型。 (继承自 CollectionEditor) | 
        	
| Context | 
		 获取指示当前上下文的类型说明符。 (继承自 CollectionEditor) | 
        	
| HelpTopic | 
		 在用户按下编辑器对话框中的“帮助”按钮或 F1 键时,获取“帮助”关键字以显示“帮助”主题或主题列表。 (继承自 CollectionEditor) | 
        	
| IsDropDownResizable | 
		 获取一个值,该值指示是否应由用户调整下拉编辑器的大小。 (继承自 UITypeEditor) | 
        	
| NewItemTypes | 
		 获取可为此集合创建的项的可用类型。 (继承自 CollectionEditor) |