DesignerCollection 類別

定義

代表設計工具集合。

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

範例

下列程式碼範例會 DesignerCollection 使用指定的 物件陣列建立初始化的 IDesignerHost

// Create a DesignerCollection using a constructor
// that accepts an array of IDesignerHost objects with 
// which to initialize the array.
array<IDesignerHost^>^temp0 = {designerhost1,designerhost2};
DesignerCollection^ collection = gcnew DesignerCollection( temp0 );
// Create a DesignerCollection using a constructor
// that accepts an array of IDesignerHost objects with 
// which to initialize the array.
DesignerCollection collection = new DesignerCollection( 
    new IDesignerHost[] { designerhost1, designerhost2 } );
' Create a DesignerCollection using a constructor
' that accepts an array of IDesignerHost objects with
' which to initialize the collection.
Dim collection As New DesignerCollection(New IDesignerHost() {designerhost1, designerhost2})

備註

這個集合物件可以儲存一組設計工具的參考。

建構函式

DesignerCollection(IDesignerHost[])

初始化 DesignerCollection 類別的新執行個體,它包含指定的設計工具。

DesignerCollection(IList)

初始化 DesignerCollection 類別的新執行個體,它包含指定的設計工具集。

屬性

Count

取得集合中的設計工具數目。

Item[Int32]

取得在指定索引處的設計工具。

方法

Equals(Object)

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

(繼承來源 Object)
GetEnumerator()

取得這個集合的新列舉值。

GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

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

(繼承來源 Object)

明確介面實作

ICollection.CopyTo(Array, Int32)

從特定的 Array 索引開始,將集合的項目複製至 Array

ICollection.Count

取得集合所包含的項目數目。

ICollection.IsSynchronized

取得值,這個值表示對 ICollection 的存取是否同步 (安全執行緒)。

ICollection.SyncRoot

取得物件,這個物件可以用來對集合進行同步存取。

IEnumerable.GetEnumerator()

取得這個集合的新列舉值。

擴充方法

Cast<TResult>(IEnumerable)

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

OfType<TResult>(IEnumerable)

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

AsParallel(IEnumerable)

啟用查詢的平行化作業。

AsQueryable(IEnumerable)

IEnumerable 轉換成 IQueryable

適用於