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

備註

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

建構函式

ArrayEditor(Type)

使用指定的陣列資料型別,初始化 ArrayEditor 的新執行個體。

屬性

CollectionItemType

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

(繼承來源 CollectionEditor)
CollectionType

取得集合物件 (Collection Object) 的資料型別。

(繼承來源 CollectionEditor)
Context

取得指示目前內容的型別描述項。

(繼承來源 CollectionEditor)
HelpTopic

當按下編輯器的對話方塊 [說明] 按鈕或 F1 鍵時,取得 Help 關鍵字以顯示說明主題或主題清單。

(繼承來源 CollectionEditor)
IsDropDownResizable

取得值,表示使用者是否能夠調整下拉式編輯器的大小。

(繼承來源 UITypeEditor)
NewItemTypes

取得可為這個集合建立的項目之可用型別。

(繼承來源 CollectionEditor)

方法

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)

適用於

另請參閱