DesignerRegionCollection 類別

定義

代表控制項設計工具中的 DesignerRegion 物件集合。

public ref class DesignerRegionCollection : System::Collections::IList
public class DesignerRegionCollection : System.Collections.IList
type DesignerRegionCollection = class
    interface IList
    interface ICollection
    interface IEnumerable
Public Class DesignerRegionCollection
Implements IList
繼承
DesignerRegionCollection
實作

備註

類別 ControlDesigner 和任何衍生類別都會使用 DesignerRegionCollection 類別來包含和列舉設計主機中控制項的設計工具區域,例如 Visual Studio 2005。

例如, ControlDesigner.GetDesignTimeHtml 方法可用來定義和新增區域至集合。

Owner使用 屬性來存取包含設計工具區域集合的控制項設計工具物件。 DesignerRegionCollection使用 方法和屬性來檢查和維護 DesignerRegion 集合中的物件。

當加入物件時,集合會動態增加。 這個集合中的索引是以零起始。 Count使用 屬性來判斷集合中有多少設計工具區域。 DesignerRegionCollection使用成員提供下列功能:

  • Add 單一設計工具區域新增至集合的方法。

  • Insert在集合內特定索引處加入設計工具區域的方法。

  • Remove移除設計工具區域的方法。

  • RemoveAt移除特定索引之設計工具區域的方法。

  • Contains判斷特定設計工具區域是否已經在集合中的方法。

  • IndexOf 集合中擷取設計工具區域的索引的方法。

  • 使用 Item[] 陣列標記法取得或設定特定索引之設計工具區域的索引子。

  • Clear從集合中移除所有設計工具區域的方法。

建構函式

DesignerRegionCollection()

初始化 DesignerRegionCollection 類別的新執行個體。

DesignerRegionCollection(ControlDesigner)

為指定的控制項設計工具,初始化 DesignerRegionCollection 類別的新執行個體。

屬性

Count

取得集合中 DesignerRegion 物件的數目。

IsFixedSize

取得值,指出 DesignerRegionCollection 物件是否具有固定的大小。

IsReadOnly

取得值,這個值表示 DesignerRegionCollection 物件是否唯讀。

IsSynchronized

取得值,表示是否要同步處理 (執行緒安全) 對 DesignerRegionCollection 物件的存取。

Item[Int32]

取得或設定位於集合中指定索引上的 DesignerRegion 物件。

Owner

取得擁有設計工具區域集合的控制項設計工具。

SyncRoot

取得可用來同步處理對 DesignerRegionCollection 物件之存取的物件。

方法

Add(DesignerRegion)

將指定的 DesignerRegion 物件加入至集合的尾端。

Clear()

從集合移除所有的區域。

Contains(DesignerRegion)

取得值,指出集合內是否包含指定的區域。

CopyTo(Array, Int32)

從特定的 Array 索引開始,將集合項目複製到 Array 物件。

Equals(Object)

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

(繼承來源 Object)
GetEnumerator()

傳回逐一查看集合的列舉值。

GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
IndexOf(DesignerRegion)

傳回指定的 DesignerRegion 物件在集合中的索引。

Insert(Int32, DesignerRegion)

DesignerRegion 插入位於指定索引的集合。

MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
Remove(DesignerRegion)

從集合中移除指定的 DesignerRegion 物件。

RemoveAt(Int32)

移除位於集合中指定索引上的 DesignerRegion 物件。

ToString()

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

(繼承來源 Object)

明確介面實作

ICollection.CopyTo(Array, Int32)

如需這個成員的說明,請參閱 CopyTo(Array, Int32)

ICollection.Count

如需這個成員的說明,請參閱 Count

ICollection.IsSynchronized

如需這個成員的說明,請參閱 IsSynchronized

ICollection.SyncRoot

如需這個成員的說明,請參閱 SyncRoot

IEnumerable.GetEnumerator()

如需這個成員的說明,請參閱 GetEnumerator()

IList.Add(Object)

如需這個成員的說明,請參閱 Add(Object)

IList.Clear()

如需這個成員的說明,請參閱 Clear()

IList.Contains(Object)

如需這個成員的說明,請參閱 Contains(Object)

IList.IndexOf(Object)

如需這個成員的說明,請參閱 IndexOf(Object)

IList.Insert(Int32, Object)

如需這個成員的說明,請參閱 Insert(Int32, Object)

IList.IsFixedSize

如需這個成員的說明,請參閱 IsFixedSize

IList.IsReadOnly

如需這個成員的說明,請參閱 IsReadOnly

IList.Item[Int32]

如需這個成員的說明,請參閱 Item[Int32]

IList.Remove(Object)

如需這個成員的說明,請參閱 Remove(Object)

IList.RemoveAt(Int32)

如需這個成員的說明,請參閱 RemoveAt(Int32)

擴充方法

Cast<TResult>(IEnumerable)

IEnumerable 的項目轉換成指定的型別。

OfType<TResult>(IEnumerable)

根據指定的型別來篩選 IEnumerable 的項目。

AsParallel(IEnumerable)

啟用查詢的平行化作業。

AsQueryable(IEnumerable)

IEnumerable 轉換成 IQueryable

適用於

另請參閱