DesignerActionListCollection 클래스

정의

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

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

예제

다음 코드 예제에는 컬렉션을 만드는 방법을 보여 줍니다 DesignerActionItem 개체입니다.

전체 예제는 방법: Windows Forms 구성 요소에 스마트 태그 연결을 참조하세요.

private DesignerActionListCollection actionLists;
Private lists As DesignerActionListCollection
public override DesignerActionListCollection ActionLists
{
    get
    {
        if (null == actionLists)
        {
            actionLists = new DesignerActionListCollection();
            actionLists.Add(
                new ColorLabelActionList(this.Component));
        }
        return actionLists;
    }
}
Public Overrides ReadOnly Property ActionLists() _
As DesignerActionListCollection
    Get
        If lists Is Nothing Then
            lists = New DesignerActionListCollection()
            lists.Add( _
            New ColorLabelActionList(Me.Component))
        End If
        Return lists
    End Get
End Property

설명

클래스는 DesignerActionListCollection 스마트 태그 패널에 있는 모든 항목의 집계를 나타냅니다. 합니다 DesignerActionListCollection 클래스에는 0 개 이상 포함 되어 DesignerActionList 개체입니다. 이러한 목록 중 각 패널에 있는 실제 항목을 나타내고에서 파생 되는 0 개 이상의 개체가 포함 된 DesignerActionItem 클래스입니다.

다음 표에서는 사용자 지정 컨트롤을 DesignerActionListCollection 포함하여 구성 요소에 대한 항목으로 패널을 채우기 위해 을 제공하는 두 가지 기술을 보여 줍니다.

방법 Description
끌어오기 모델 클래스에서 파생된 구성 요소 클래스의 ComponentDesigner 디자이너는 속성을 통해 ActionLists 이 컬렉션을 제공합니다. 디자이너 인프라는 패널을 표시해야 하는 경우 이 속성을 읽습니다.
푸시 모델 또는 DesignerActionListDesignerActionListCollection 는 구성 요소와 연결된 의 DesignerActionService 메서드에 Add 대한 호출에서 매개 변수로 제공됩니다.

디자이너 인프라는 생성자가 형식 DesignerActionListCollection의 두 매개 변수를 사용하는 스마트 태그 패널을 만들어 패널을 생성합니다. 끌어온 항목과 푸시된 항목을 포함하는 목록의 컬렉션은 하나의 패널로 병합됩니다.

클래스에서 System.Collections.CollectionBase 파생되므로 는 DesignerActionListCollection 내부 ArrayList 를 사용하여 개체 컬렉션을 DesignerActionList 저장합니다.

생성자

DesignerActionListCollection()

기본 설정을 포함하는 DesignerActionListCollection 클래스의 새 인스턴스를 초기화합니다.

DesignerActionListCollection(DesignerActionList[])

지정한 패널 항목을 사용하여 DesignerActionListCollection 클래스의 새 인스턴스를 초기화합니다.

속성

Capacity

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

(다음에서 상속됨 CollectionBase)
Count

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

(다음에서 상속됨 CollectionBase)
InnerList

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

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

지정한 인덱스에 있는 요소를 가져오거나 설정합니다.

List

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

(다음에서 상속됨 CollectionBase)

메서드

Add(DesignerActionList)

제공된 DesignerActionList를 현재 컬렉션에 추가합니다.

AddRange(DesignerActionList[])

제공된 DesignerActionList 배열의 요소를 현재 컬렉션의 끝에 추가합니다.

AddRange(DesignerActionListCollection)

제공된 DesignerActionListCollection의 요소를 현재 컬렉션의 끝에 추가합니다.

Clear()

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

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

특정 값이 컬렉션에 포함되는지 여부를 나타냅니다.

CopyTo(DesignerActionList[], Int32)

지정한 배열 인덱스부터 현재 컬렉션의 요소를 제공된 배열에 복사합니다.

Equals(Object)

지정된 개체가 현재 개체와 같은지 확인합니다.

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

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

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

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

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

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

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

컬렉션에 있는 특정 항목의 인덱스를 확인합니다.

Insert(Int32, DesignerActionList)

제공된 DesignerActionList를 컬렉션의 지정된 위치에 삽입합니다.

MemberwiseClone()

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

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

CollectionBase 인스턴스의 콘텐츠를 지운 후에 추가로 사용자 지정 프로세스를 수행합니다.

OnClear()

CollectionBase 인스턴스의 콘텐츠를 지운 후에 추가로 사용자 지정 프로세스를 수행합니다.

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

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

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

DesignerActionListCollection 인스턴스에 새 요소를 삽입하기 전에 추가로 사용자 지정 프로세스를 수행합니다.

OnInsert(Int32, Object)

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

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

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

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

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

OnRemove(Int32, Object)

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

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

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

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

DesignerActionListCollection 인스턴스에 값을 설정하기 전에 추가로 사용자 지정 프로세스를 수행합니다.

OnSet(Int32, Object, Object)

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

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

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

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

값의 유효성을 검사할 때 추가로 사용자 지정 프로세스를 수행합니다.

Remove(DesignerActionList)

컬렉션에서 맨 처음 발견되는 특정 DesignerActionList를 제거합니다.

RemoveAt(Int32)

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

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

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

(다음에서 상속됨 Object)

명시적 인터페이스 구현

ICollection.CopyTo(Array, Int32)

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

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

CollectionBase에 대한 액세스가 동기화되어 스레드로부터 안전하게 보호되는지를 나타내는 값을 가져옵니다.

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

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

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

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

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

CollectionBase에 특정 요소가 들어 있는지 여부를 확인합니다.

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

지정한 Object를 검색하고, 전체 CollectionBase 내에서 처음 나오는 0부터 시작하는 인덱스를 반환합니다.

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

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

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

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

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

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

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

지정한 인덱스에 있는 요소를 가져오거나 설정합니다.

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

CollectionBase에서 맨 처음 발견되는 특정 개체를 제거합니다.

(다음에서 상속됨 CollectionBase)

확장 메서드

Cast<TResult>(IEnumerable)

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

OfType<TResult>(IEnumerable)

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

AsParallel(IEnumerable)

쿼리를 병렬화할 수 있도록 합니다.

AsQueryable(IEnumerable)

IEnumerableIQueryable로 변환합니다.

적용 대상

추가 정보