ArrayEditor 類別

定義

提供設計時編輯陣列的使用者介面。

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

備註

此編輯器可用於設計時環境中的陣列編輯。

建構函式

名稱 Description
ArrayEditor(Type)

初始化使用指定資料型態的陣列實例 ArrayEditor

屬性

名稱 Description
CollectionItemType

取得集合中每個項目的資料型態。

(繼承來源 CollectionEditor)
CollectionType

取得收藏物件的資料型態。

(繼承來源 CollectionEditor)
Context

會取得一個類型描述符,表示目前的上下文。

(繼承來源 CollectionEditor)
HelpTopic

取得幫助關鍵字,顯示說明主題或主題清單,當編輯者按下說明按鈕或 F1 鍵時使用。

(繼承來源 CollectionEditor)
IsDropDownResizable

會有一個值,指示下拉選單編輯器是否應該被使用者調整大小。

(繼承來源 UITypeEditor)
NewItemTypes

取得可為此收藏建立的物品類型。

(繼承來源 CollectionEditor)

方法

名稱 Description
CancelChanges()

取消對收藏的變更。

(繼承來源 CollectionEditor)
CanRemoveInstance(Object)

表示收藏的原始成員是否可以被移除。

(繼承來源 CollectionEditor)
CanSelectMultipleInstances()

表示是否可以同時選取多個收藏品。

(繼承來源 CollectionEditor)
CreateCollectionForm()

建立一個新表單來顯示和編輯目前的收藏。

(繼承來源 CollectionEditor)
CreateCollectionItemType()

取得此集合設計要包含的資料型態。

CreateInstance(Type)

建立指定的集合項目類型的新實例。

(繼承來源 CollectionEditor)
CreateNewItemTypes()

取得這個集合編輯器能包含的資料型別。

(繼承來源 CollectionEditor)
DestroyInstance(Object)

摧毀指定的物件實例。

(繼承來源 CollectionEditor)
EditValue(IServiceProvider, Object)

使用方法指示 GetEditStyle() 的編輯器樣式編輯指定物件的值。

(繼承來源 UITypeEditor)
EditValue(ITypeDescriptorContext, IServiceProvider, Object)

使用指定的服務提供者與上下文編輯指定物件的值。

(繼承來源 CollectionEditor)
Equals(Object)

判斷指定的 物件是否等於目前的物件。

(繼承來源 Object)
GetDisplayText(Object)

取得該清單項目的顯示文字。

(繼承來源 CollectionEditor)
GetEditStyle()

會得到方法中使用的 EditValue(IServiceProvider, Object) 編輯器風格。

(繼承來源 UITypeEditor)
GetEditStyle(ITypeDescriptorContext)

取得方法所 EditValue(ITypeDescriptorContext, IServiceProvider, Object) 用的編輯風格。

(繼承來源 CollectionEditor)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetItems(Object)

取得陣列中的物品。

GetObjectsFromInstance(Object)

回傳包含該物件的清單。

(繼承來源 CollectionEditor)
GetPaintValueSupported()

表示此編輯器是否支援繪製物件價值的表示。

(繼承來源 UITypeEditor)
GetPaintValueSupported(ITypeDescriptorContext)

表示指定的上下文是否支持在指定上下文中繪製物件價值的表示。

(繼承來源 UITypeEditor)
GetService(Type)

如果有服務,他會得到所要求的服務。

(繼承來源 CollectionEditor)
GetType()

取得目前實例的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object的淺層複本。

(繼承來源 Object)
PaintValue(Object, Graphics, Rectangle)

繪製指定物件價值在指定畫布上的表示。

(繼承來源 UITypeEditor)
PaintValue(PaintValueEventArgs)

使用指定的 PaintValueEventArgs繪製物件值的表示。

(繼承來源 UITypeEditor)
SetItems(Object, Object[])

設定陣列中的項目。

ShowHelp()

顯示集合編輯器的預設說明主題。

(繼承來源 CollectionEditor)
ToString()

傳回表示目前 物件的字串。

(繼承來源 Object)

適用於

另請參閱