DesignerRegionCollection DesignerRegionCollection DesignerRegionCollection DesignerRegionCollection Class

定義

表示控制項設計工具內的 DesignerRegion 物件集合。Represents a collection of DesignerRegion objects within a control designer.

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
繼承
DesignerRegionCollectionDesignerRegionCollectionDesignerRegionCollectionDesignerRegionCollection
實作

備註

ControlDesigner類別,以及任何衍生的類別,會使用DesignerRegionCollection類別來包含和列舉在設計主應用程式,控制項設計工具區域,例如Visual Studio 2005Visual Studio 2005The ControlDesigner class, and any derived class, uses the DesignerRegionCollection class to contain and enumerate the designer regions for the control in a design host, such as Visual Studio 2005Visual Studio 2005.

比方說,ControlDesigner.GetDesignTimeHtml方法可用來定義並將區域新增至集合。For example, the ControlDesigner.GetDesignTimeHtml method can be used to define and add regions to the collection.

使用Owner屬性來存取包含設計工具區域集合的控制項設計工具物件。Use the Owner property to access the control designer object that contains the designer region collection. 使用DesignerRegionCollection方法和屬性來檢查並維護DesignerRegion集合中的物件。Use the DesignerRegionCollection methods and properties to examine and maintain the DesignerRegion objects that are in the collection.

加入物件時,以動態方式增加集合。The collection dynamically increases as objects are added. 這個集合中的索引都是以零為起始的。Indexes in this collection are zero-based. 使用Count來判斷多少的設計工具區域集合中的屬性。Use the Count property to determine how many designer regions are in the collection. 使用DesignerRegionCollection成員提供下列功能:Use the DesignerRegionCollection members to provide the following functionality:

  • Add方法,將單一的設計工具區域加入至集合。The Add method to add a single designer region to the collection.

  • Insert方法來加入集合中的特定索引處的設計工具區域。The Insert method to add a designer region at a particular index within the collection.

  • Remove方法移除設計工具區域。The Remove method to remove a designer region.

  • RemoveAt方法移除特定索引處的設計工具區域。The RemoveAt method to remove the designer region at a particular index.

  • Contains方法,以判斷特定的設計工具區域是否已在集合中。The Contains method to determine whether a particular designer region is already in the collection.

  • IndexOf方法來擷取設計工具區域集合中的索引。The IndexOf method to retrieve the index of a designer region within the collection.

  • Item[Int32]来取得或設定設計工具區域中使用陣列標記法的特定索引處的索引子。The Item[Int32] indexer to get or set the designer region at a particular index, using array notation.

  • Clear方法從集合移除所有設計工具區域。The Clear method to remove all designer regions from the collection.

建構函式

DesignerRegionCollection() DesignerRegionCollection() DesignerRegionCollection() DesignerRegionCollection()

初始化 DesignerRegionCollection 類別的新執行個體。Initializes a new instance of the DesignerRegionCollection class.

DesignerRegionCollection(ControlDesigner) DesignerRegionCollection(ControlDesigner) DesignerRegionCollection(ControlDesigner) DesignerRegionCollection(ControlDesigner)

為指定的控制項設計工具,初始化 DesignerRegionCollection 類別的新執行個體。Initializes a new instance of the DesignerRegionCollection class for the specified control designer.

屬性

Count Count Count Count

取得集合中 DesignerRegion 物件的數目。Gets the number of DesignerRegion objects in the collection.

IsFixedSize IsFixedSize IsFixedSize IsFixedSize

取得值,指出 DesignerRegionCollection 物件是否具有固定的大小。Gets a value indicating whether the DesignerRegionCollection object has a fixed size.

IsReadOnly IsReadOnly IsReadOnly IsReadOnly

取得值,這個值表示 DesignerRegionCollection 物件是否唯讀。Gets a value indicating whether the DesignerRegionCollection object is read-only.

IsSynchronized IsSynchronized IsSynchronized IsSynchronized

取得值,表示是否要同步處理 (執行緒安全) 對 DesignerRegionCollection 物件的存取。Gets a value indicating whether access to the DesignerRegionCollection object is synchronized (thread safe).

Item[Int32] Item[Int32] Item[Int32] Item[Int32]

取得或設定位於集合中指定索引上的 DesignerRegion 物件。Gets or sets a DesignerRegion object at the specified index in the collection.

Owner Owner Owner Owner

取得擁有設計工具區域集合的控制項設計工具。Gets the control designer that owns the designer region collection.

SyncRoot SyncRoot SyncRoot SyncRoot

取得可用來同步處理對 DesignerRegionCollection 物件之存取的物件。Gets an object that can be used to synchronize access to the DesignerRegionCollection object.

方法

Add(DesignerRegion) Add(DesignerRegion) Add(DesignerRegion) Add(DesignerRegion)

將指定的 DesignerRegion 物件加入至集合的尾端。Adds the specified DesignerRegion object to the end of the collection.

Clear() Clear() Clear() Clear()

從集合移除所有的區域。Removes all regions from the collection.

Contains(DesignerRegion) Contains(DesignerRegion) Contains(DesignerRegion) Contains(DesignerRegion)

取得值,指出集合內是否包含指定的區域。Gets a value indicating whether the specified region is contained within the collection.

CopyTo(Array, Int32) CopyTo(Array, Int32) CopyTo(Array, Int32) CopyTo(Array, Int32)

從特定的 Array 索引開始,將集合項目複製到 Array 物件。Copies the elements of the collection to an Array object, starting at a particular Array index.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()

傳回逐一查看集合的列舉值。Returns an enumerator that iterates through the collection.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
IndexOf(DesignerRegion) IndexOf(DesignerRegion) IndexOf(DesignerRegion) IndexOf(DesignerRegion)

傳回指定的 DesignerRegion 物件在集合中的索引。Returns the index of the specified DesignerRegion object within the collection.

Insert(Int32, DesignerRegion) Insert(Int32, DesignerRegion) Insert(Int32, DesignerRegion) Insert(Int32, DesignerRegion)

DesignerRegion 插入位於指定索引的集合。Inserts a DesignerRegion object into the collection at the specified index.

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
Remove(DesignerRegion) Remove(DesignerRegion) Remove(DesignerRegion) Remove(DesignerRegion)

從集合中移除指定的 DesignerRegion 物件。Removes the specified DesignerRegion object from the collection.

RemoveAt(Int32) RemoveAt(Int32) RemoveAt(Int32) RemoveAt(Int32)

移除位於集合中指定索引上的 DesignerRegion 物件。Removes the DesignerRegion object at the specified index within the collection.

ToString() ToString() ToString() ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(Inherited from Object)

明確介面實作

ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32)

如需這個成員的說明,請參閱 CopyTo(Array, Int32)For a description of this member, see CopyTo(Array, Int32).

ICollection.Count ICollection.Count ICollection.Count ICollection.Count

如需這個成員的說明,請參閱 CountFor a description of this member, see Count.

ICollection.IsSynchronized ICollection.IsSynchronized ICollection.IsSynchronized ICollection.IsSynchronized

如需這個成員的說明,請參閱 IsSynchronizedFor a description of this member, see IsSynchronized.

ICollection.SyncRoot ICollection.SyncRoot ICollection.SyncRoot ICollection.SyncRoot

如需這個成員的說明,請參閱 SyncRootFor a description of this member, see SyncRoot.

IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator()

如需這個成員的說明,請參閱 GetEnumerator()For a description of this member, see GetEnumerator().

IList.Add(Object) IList.Add(Object) IList.Add(Object) IList.Add(Object)

如需這個成員的說明,請參閱 Add(Object)For a description of this member, see Add(Object).

IList.Clear() IList.Clear() IList.Clear() IList.Clear()

如需這個成員的說明,請參閱 Clear()For a description of this member, see Clear().

IList.Contains(Object) IList.Contains(Object) IList.Contains(Object) IList.Contains(Object)

如需這個成員的說明,請參閱 Contains(Object)For a description of this member, see Contains(Object).

IList.IndexOf(Object) IList.IndexOf(Object) IList.IndexOf(Object) IList.IndexOf(Object)

如需這個成員的說明,請參閱 IndexOf(Object)For a description of this member, see IndexOf(Object).

IList.Insert(Int32, Object) IList.Insert(Int32, Object) IList.Insert(Int32, Object) IList.Insert(Int32, Object)

如需這個成員的說明,請參閱 Insert(Int32, Object)For a description of this member, see Insert(Int32, Object).

IList.IsFixedSize IList.IsFixedSize IList.IsFixedSize IList.IsFixedSize

如需這個成員的說明,請參閱 IsFixedSizeFor a description of this member, see IsFixedSize.

IList.IsReadOnly IList.IsReadOnly IList.IsReadOnly IList.IsReadOnly

如需這個成員的說明,請參閱 IsReadOnlyFor a description of this member, see IsReadOnly.

IList.Item[Int32] IList.Item[Int32] IList.Item[Int32] IList.Item[Int32]

如需這個成員的說明,請參閱 Item[Int32]For a description of this member, see Item[Int32].

IList.Remove(Object) IList.Remove(Object) IList.Remove(Object) IList.Remove(Object)

如需這個成員的說明,請參閱 Remove(Object)For a description of this member, see Remove(Object).

IList.RemoveAt(Int32) IList.RemoveAt(Int32) IList.RemoveAt(Int32) IList.RemoveAt(Int32)

如需這個成員的說明,請參閱 RemoveAt(Int32)For a description of this member, see RemoveAt(Int32).

Extension Methods

Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable)

IEnumerable 的項目轉換成指定的型別。Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable)

根據指定的型別來篩選 IEnumerable 的項目。Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable)

啟用查詢的平行化作業。Enables parallelization of a query.

AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable)

將轉換IEnumerableIQueryableConverts an IEnumerable to an IQueryable.

適用於

另請參閱