DesignerVerbCollection 클래스

정의

개체의 DesignerVerb 컬렉션을 나타냅니다.

public ref class DesignerVerbCollection : System::Collections::CollectionBase
[System.Runtime.InteropServices.ComVisible(true)]
public class DesignerVerbCollection : System.Collections.CollectionBase
public class DesignerVerbCollection : System.Collections.CollectionBase
[<System.Runtime.InteropServices.ComVisible(true)>]
type DesignerVerbCollection = class
    inherit CollectionBase
type DesignerVerbCollection = class
    inherit CollectionBase
Public Class DesignerVerbCollection
Inherits CollectionBase
상속
DesignerVerbCollection
파생
특성

예제

다음 코드 예제에서는 클래스를 사용 하는 방법을 보여 줍니다 DesignerVerbCollection . 이 예제에서는 클래스의 새 인스턴스를 만들고 여러 메서드를 사용하여 컬렉션에 문을 추가하고, 인덱스를 반환하고, 특정 인덱스 지점에서 특성을 추가하거나 제거합니다.

// Creates an empty DesignerVerbCollection.
DesignerVerbCollection^ collection = gcnew DesignerVerbCollection;

// Adds a DesignerVerb to the collection.
collection->Add( gcnew DesignerVerb( "Example designer verb",gcnew EventHandler( this, &Class1::ExampleEvent ) ) );

// Adds an array of DesignerVerb objects to the collection.
array<DesignerVerb^>^ verbs = {
   gcnew DesignerVerb( "Example designer verb", gcnew EventHandler( this, &Class1::ExampleEvent ) ),
   gcnew DesignerVerb( "Example designer verb", gcnew EventHandler( this, &Class1::ExampleEvent ) )};
collection->AddRange( verbs );

// Adds a collection of DesignerVerb objects to the collection.
DesignerVerbCollection^ verbsCollection = gcnew DesignerVerbCollection;
verbsCollection->Add( gcnew DesignerVerb( "Example designer verb", gcnew EventHandler( this, &Class1::ExampleEvent ) ) );
verbsCollection->Add( gcnew DesignerVerb( "Example designer verb", gcnew EventHandler( this, &Class1::ExampleEvent ) ) );
collection->AddRange( verbsCollection );

// Tests for the presence of a DesignerVerb in the collection,
// and retrieves its index if it is found.
DesignerVerb^ testVerb = gcnew DesignerVerb( "Example designer verb", gcnew EventHandler( this, &Class1::ExampleEvent ) );
int itemIndex = -1;
if ( collection->Contains( testVerb ) )
         itemIndex = collection->IndexOf( testVerb );

// Copies the contents of the collection, beginning at index 0,
// to the specified DesignerVerb array.
// 'verbs' is a DesignerVerb array.
collection->CopyTo( verbs, 0 );

// Retrieves the count of the items in the collection.
int collectionCount = collection->Count;

// Inserts a DesignerVerb at index 0 of the collection.
collection->Insert( 0, gcnew DesignerVerb( "Example designer verb", gcnew EventHandler( this, &Class1::ExampleEvent ) ) );

// Removes the specified DesignerVerb from the collection.
DesignerVerb^ verb = gcnew DesignerVerb( "Example designer verb", gcnew EventHandler( this, &Class1::ExampleEvent ) );
collection->Remove( verb );

// Removes the DesignerVerb at index 0.
collection->RemoveAt( 0 );
// Creates an empty DesignerVerbCollection.
DesignerVerbCollection collection = new DesignerVerbCollection();

// Adds a DesignerVerb to the collection.
collection.Add( new DesignerVerb("Example designer verb", new EventHandler(this.ExampleEvent)) );

// Adds an array of DesignerVerb objects to the collection.
DesignerVerb[] verbs = { new DesignerVerb("Example designer verb", new EventHandler(this.ExampleEvent)), new DesignerVerb("Example designer verb", new EventHandler(this.ExampleEvent)) };
collection.AddRange( verbs );

// Adds a collection of DesignerVerb objects to the collection.
DesignerVerbCollection verbsCollection = new DesignerVerbCollection();
verbsCollection.Add( new DesignerVerb("Example designer verb", new EventHandler(this.ExampleEvent)) );
verbsCollection.Add( new DesignerVerb("Example designer verb", new EventHandler(this.ExampleEvent)) );
collection.AddRange( verbsCollection );

// Tests for the presence of a DesignerVerb in the collection, 
// and retrieves its index if it is found.
DesignerVerb testVerb = new DesignerVerb("Example designer verb", new EventHandler(this.ExampleEvent));
int itemIndex = -1;
if( collection.Contains( testVerb ) )
    itemIndex = collection.IndexOf( testVerb );

// Copies the contents of the collection, beginning at index 0, 
// to the specified DesignerVerb array.
// 'verbs' is a DesignerVerb array.
collection.CopyTo( verbs, 0 );

// Retrieves the count of the items in the collection.
int collectionCount = collection.Count;

// Inserts a DesignerVerb at index 0 of the collection.
collection.Insert( 0, new DesignerVerb("Example designer verb", new EventHandler(this.ExampleEvent)) );

// Removes the specified DesignerVerb from the collection.
DesignerVerb verb = new DesignerVerb("Example designer verb", new EventHandler(this.ExampleEvent));
collection.Remove( verb );

// Removes the DesignerVerb at index 0.
collection.RemoveAt(0);
' Creates an empty DesignerVerbCollection.
Dim collection As New DesignerVerbCollection()

' Adds a DesignerVerb to the collection.
collection.Add(New DesignerVerb("Example designer verb", New EventHandler(AddressOf Me.ExampleEvent)))

' Adds an array of DesignerVerb objects to the collection.
Dim verbs As DesignerVerb() = {New DesignerVerb("Example designer verb", New EventHandler(AddressOf Me.ExampleEvent)), New DesignerVerb("Example designer verb", New EventHandler(AddressOf Me.ExampleEvent))}
collection.AddRange(verbs)

' Adds a collection of DesignerVerb objects to the collection.
Dim verbsCollection As New DesignerVerbCollection()
verbsCollection.Add(New DesignerVerb("Example designer verb", New EventHandler(AddressOf Me.ExampleEvent)))
verbsCollection.Add(New DesignerVerb("Example designer verb", New EventHandler(AddressOf Me.ExampleEvent)))
collection.AddRange(verbsCollection)

' Tests for the presence of a DesignerVerb in the collection, 
' and retrieves its index if it is found.
Dim testVerb As New DesignerVerb("Example designer verb", New EventHandler(AddressOf Me.ExampleEvent))
Dim itemIndex As Integer = -1
If collection.Contains(testVerb) Then
    itemIndex = collection.IndexOf(testVerb)
End If

' Copies the contents of the collection, beginning at index 0, 
' to the specified DesignerVerb array.
' 'verbs' is a DesignerVerb array.
collection.CopyTo(verbs, 0)

' Retrieves the count of the items in the collection.
Dim collectionCount As Integer = collection.Count

' Inserts a DesignerVerb at index 0 of the collection.
collection.Insert(0, New DesignerVerb("Example designer verb", New EventHandler(AddressOf Me.ExampleEvent)))

' Removes the specified DesignerVerb from the collection.
Dim verb As New DesignerVerb("Example designer verb", New EventHandler(AddressOf Me.ExampleEvent))
collection.Remove(verb)

' Removes the DesignerVerb at index 0.
collection.RemoveAt(0)

설명

이 클래스는 개체를 포함 DesignerVerb 할 수 있는 컬렉션을 제공합니다.

생성자

Name Description
DesignerVerbCollection()

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

DesignerVerbCollection(DesignerVerb[])

지정된 개체 배열 DesignerVerb 을 사용하여 클래스의 DesignerVerbCollection 새 인스턴스를 초기화합니다.

속성

Name Description
Capacity

포함할 수 있는 CollectionBase 요소의 수를 가져오거나 설정합니다.

(다음에서 상속됨 CollectionBase)
Count

인스턴스에 포함된 CollectionBase 요소 수를 가져옵니다. 이 속성은 재정의할 수 없습니다.

(다음에서 상속됨 CollectionBase)
InnerList

인스턴스의 ArrayList 요소 CollectionBase 목록을 포함하는 항목을 가져옵니다.

(다음에서 상속됨 CollectionBase)
Item[Int32]

지정된 인덱스에서 DesignerVerb 값을 가져오거나 설정합니다.

List

인스턴스의 IList 요소 CollectionBase 목록을 포함하는 항목을 가져옵니다.

(다음에서 상속됨 CollectionBase)

메서드

Name Description
Add(DesignerVerb)

컬렉션에 지정된 DesignerVerb 값을 추가합니다.

AddRange(DesignerVerb[])

컬렉션에 지정된 디자이너 동사 집합을 추가합니다.

AddRange(DesignerVerbCollection)

지정된 디자이너 동사 컬렉션을 컬렉션에 추가합니다.

Clear()

인스턴스에서 모든 개체를 CollectionBase 제거합니다. 이 메서드는 재정의할 수 없습니다.

(다음에서 상속됨 CollectionBase)
Contains(DesignerVerb)

지정된 DesignerVerb 컬렉션이 컬렉션에 있는지 여부를 나타내는 값을 가져옵니다.

CopyTo(DesignerVerb[], Int32)

컬렉션 멤버를 지정된 대상 인덱스에서 시작하는 지정된 DesignerVerb 배열에 복사합니다.

Equals(Object)

지정한 개체와 현재 개체가 같은지 여부를 확인합니다.

(다음에서 상속됨 Object)
GetEnumerator()

인스턴스를 반복하는 열거자를 반환합니다 CollectionBase .

(다음에서 상속됨 CollectionBase)
GetHashCode()

기본 해시 함수로 작동합니다.

(다음에서 상속됨 Object)
GetType()

현재 인스턴스의 Type 가져옵니다.

(다음에서 상속됨 Object)
IndexOf(DesignerVerb)

지정된 DesignerVerb.의 인덱스 가져옵니다.

Insert(Int32, DesignerVerb)

지정된 인덱스에 지정된 DesignerVerb 인덱스를 삽입합니다.

MemberwiseClone()

현재 Object단순 복사본을 만듭니다.

(다음에서 상속됨 Object)
OnClear()

Clear 이벤트를 발생시킵니다.

OnClearComplete()

인스턴스의 CollectionBase 내용을 지워서 추가 사용자 지정 프로세스를 수행합니다.

(다음에서 상속됨 CollectionBase)
OnInsert(Int32, Object)

Insert 이벤트를 발생시킵니다.

OnInsertComplete(Int32, Object)

인스턴스에 새 요소를 CollectionBase 삽입한 후 추가 사용자 지정 프로세스를 수행합니다.

(다음에서 상속됨 CollectionBase)
OnRemove(Int32, Object)

Remove 이벤트를 발생시킵니다.

OnRemoveComplete(Int32, Object)

인스턴스에서 CollectionBase 요소를 제거한 후 추가 사용자 지정 프로세스를 수행합니다.

(다음에서 상속됨 CollectionBase)
OnSet(Int32, Object, Object)

Set 이벤트를 발생시킵니다.

OnSetComplete(Int32, Object, Object)

인스턴스에서 CollectionBase 값을 설정한 후 추가 사용자 지정 프로세스를 수행합니다.

(다음에서 상속됨 CollectionBase)
OnValidate(Object)

Validate 이벤트를 발생시킵니다.

Remove(DesignerVerb)

컬렉션에서 지정된 DesignerVerb 값을 제거합니다.

RemoveAt(Int32)

인스턴스의 지정된 인덱스에 있는 요소를 제거합니다 CollectionBase . 이 메서드는 재정의할 수 없습니다.

(다음에서 상속됨 CollectionBase)
ToString()

현재 개체를 나타내는 문자열을 반환합니다.

(다음에서 상속됨 Object)

명시적 인터페이스 구현

Name Description
ICollection.CopyTo(Array, Int32)

대상 배열의 지정된 인덱스에서 시작하여 호환되는 1차원CollectionBase으로 전체를 Array 복사합니다.

(다음에서 상속됨 CollectionBase)
ICollection.IsSynchronized

CollectionBase 대한 액세스가 동기화되는지 여부를 나타내는 값을 가져옵니다(스레드로부터 안전).

(다음에서 상속됨 CollectionBase)
ICollection.SyncRoot

CollectionBase대한 액세스를 동기화하는 데 사용할 수 있는 개체를 가져옵니다.

(다음에서 상속됨 CollectionBase)
IList.Add(Object)

의 끝에 개체를 추가합니다 CollectionBase.

(다음에서 상속됨 CollectionBase)
IList.Contains(Object)

특정 요소가 포함되어 있는지 여부를 CollectionBase 확인합니다.

(다음에서 상속됨 CollectionBase)
IList.IndexOf(Object)

지정한 Object 인덱스(0부터 시작)를 검색하여 전체에서 첫 번째 항목의 인덱스(0부터 시작)를 반환합니다 CollectionBase.

(다음에서 상속됨 CollectionBase)
IList.Insert(Int32, Object)

지정된 인덱스에 요소를 CollectionBase 삽입합니다.

(다음에서 상속됨 CollectionBase)
IList.IsFixedSize

고정 크기가 있는지 여부를 CollectionBase 나타내는 값을 가져옵니다.

(다음에서 상속됨 CollectionBase)
IList.IsReadOnly

CollectionBase 읽기 전용인지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 CollectionBase)
IList.Item[Int32]

지정된 인덱스에서 요소를 가져오거나 설정합니다.

(다음에서 상속됨 CollectionBase)
IList.Remove(Object)

에서 특정 개체의 첫 번째 항목을 제거합니다 CollectionBase.

(다음에서 상속됨 CollectionBase)

확장명 메서드

Name Description
AsParallel(IEnumerable)

쿼리의 병렬 처리를 사용하도록 설정합니다.

AsQueryable(IEnumerable)

IEnumerable IQueryable변환합니다.

Cast<TResult>(IEnumerable)

IEnumerable 요소를 지정된 형식으로 캐스팅합니다.

OfType<TResult>(IEnumerable)

지정된 형식에 따라 IEnumerable 요소를 필터링합니다.

적용 대상