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
備註
此編輯器可用於設計時環境中的陣列編輯。
建構函式
| 名稱 | Description |
|---|---|
| ArrayEditor(Type) |
初始化使用指定資料型態的陣列實例 ArrayEditor 。 |
屬性
| 名稱 | Description |
|---|---|
| CollectionItemType |
取得集合中每個項目的資料型態。 (繼承來源 CollectionEditor) |
| CollectionType |
取得收藏物件的資料型態。 (繼承來源 CollectionEditor) |
| Context |
會取得一個類型描述符,表示目前的上下文。 (繼承來源 CollectionEditor) |
| HelpTopic |
取得幫助關鍵字,顯示說明主題或主題清單,當編輯者按下說明按鈕或 F1 鍵時使用。 (繼承來源 CollectionEditor) |
| IsDropDownResizable |
會有一個值,指示下拉選單編輯器是否應該被使用者調整大小。 (繼承來源 UITypeEditor) |
| NewItemTypes |
取得可為此收藏建立的物品類型。 (繼承來源 CollectionEditor) |