ToolboxItemCollection 생성자

정의

ToolboxItemCollection 클래스의 새 인스턴스를 초기화합니다.

오버로드

ToolboxItemCollection(ToolboxItem[])

지정된 도구 상자 항목의 배열을 사용하여 ToolboxItemCollection 클래스의 새 인스턴스를 초기화합니다.

ToolboxItemCollection(ToolboxItemCollection)

지정된 컬렉션을 사용하여 ToolboxItemCollection 클래스의 새 인스턴스를 초기화합니다.

ToolboxItemCollection(ToolboxItem[])

지정된 도구 상자 항목의 배열을 사용하여 ToolboxItemCollection 클래스의 새 인스턴스를 초기화합니다.

public:
 ToolboxItemCollection(cli::array <System::Drawing::Design::ToolboxItem ^> ^ value);
public ToolboxItemCollection (System.Drawing.Design.ToolboxItem[] value);
new System.Drawing.Design.ToolboxItemCollection : System.Drawing.Design.ToolboxItem[] -> System.Drawing.Design.ToolboxItemCollection
Public Sub New (value As ToolboxItem())

매개 변수

value
ToolboxItem[]

컬렉션을 채울 도구 상자 항목을 포함하는 ToolboxItem 형식의 배열입니다.

예제

다음 코드 예제에서는 개체 배열 ToolboxItem 을 사용하여 초기화된 새 ToolboxItemCollection instance 만드는 방법을 보여 줍니다.

// Create a new ToolboxItemCollection using a ToolboxItem array.
array<ToolboxItem^>^temp0 = {gcnew ToolboxItem( System::Windows::Forms::Label::typeid ),gcnew ToolboxItem( System::Windows::Forms::TextBox::typeid )};
ToolboxItemCollection^ collection = gcnew ToolboxItemCollection( temp0 );
// Create a new ToolboxItemCollection using a ToolboxItem array.
ToolboxItemCollection collection = 
    new ToolboxItemCollection( new ToolboxItem[] { 
        new ToolboxItem(typeof(System.Windows.Forms.Label)),
        new ToolboxItem(typeof(System.Windows.Forms.TextBox)) } );
' Create a new ToolboxItemCollection using a ToolboxItem array.
Dim collection As New ToolboxItemCollection(New ToolboxItem() _
 {New ToolboxItem(GetType(System.Windows.Forms.Label)), _
  New ToolboxItem(GetType(System.Windows.Forms.TextBox))})

적용 대상

ToolboxItemCollection(ToolboxItemCollection)

지정된 컬렉션을 사용하여 ToolboxItemCollection 클래스의 새 인스턴스를 초기화합니다.

public:
 ToolboxItemCollection(System::Drawing::Design::ToolboxItemCollection ^ value);
public ToolboxItemCollection (System.Drawing.Design.ToolboxItemCollection value);
new System.Drawing.Design.ToolboxItemCollection : System.Drawing.Design.ToolboxItemCollection -> System.Drawing.Design.ToolboxItemCollection
Public Sub New (value As ToolboxItemCollection)

매개 변수

value
ToolboxItemCollection

새 컬렉션을 채울 ToolboxItemCollection입니다.

예제

다음 코드 예제에서는 다른 ToolboxItemCollection를 사용하여 초기화된 새 ToolboxItemCollection instance 만드는 방법을 보여 줍니다.

// Create a new ToolboxItemCollection using an existing ToolboxItemCollection.
ToolboxItemCollection^ coll = gcnew ToolboxItemCollection( collection );
// Create a new ToolboxItemCollection using an existing ToolboxItemCollection.
ToolboxItemCollection coll =
    new ToolboxItemCollection( collection );
' Creates a new ToolboxItemCollection using an existing ToolboxItemCollection.
Dim coll As New ToolboxItemCollection(collection)

적용 대상