UIElementWeakCollection 클래스

정의

UIElement 개체에 대한 약한 참조의 컬렉션을 나타냅니다.

/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.WinUIContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class UIElementWeakCollection : IIterable<UIElement>, IVector<UIElement>
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public class UIElementWeakCollection : IEnumerable<UIElement>, IList<UIElement>
Public Class UIElementWeakCollection
Implements IEnumerable(Of UIElement), IList(Of UIElement)
상속
Object IInspectable UIElementWeakCollection
특성
구현

설명

이 클래스는 ThemeShadow.Receivers 속성에서 사용됩니다.

생성자

UIElementWeakCollection()

UIElementWeakCollection 클래스의 새 instance 초기화합니다.

속성

Size

컬렉션의 크기(개수)를 가져옵니다.

메서드

Append(UIElement)

컬렉션에 새 항목을 추가합니다.

Clear()

컬렉션에서 모든 항목을 제거합니다.

First()

컬렉션의 항목에 대한 반복기를 반환합니다.

GetAt(UInt32)

지정된 인덱스 에 있는 항목을 반환합니다.

GetMany(UInt32, UIElement[])

반복기를 통해 한 번의 패스로 여러 요소를 검색합니다.

GetView()

컬렉션에 변경할 수 없는 보기를 가져옵니다.

IndexOf(UIElement, UInt32)

지정된 항목의 인덱스를 검색합니다.

InsertAt(UInt32, UIElement)

지정된 인덱스에 지정된 항목을 삽입합니다.

RemoveAt(UInt32)

지정된 인덱스에서 항목을 제거합니다.

RemoveAtEnd()

컬렉션의 마지막 항목을 제거합니다.

ReplaceAll(UIElement[])

처음에 컬렉션을 지운 다음 제공된 배열을 새 항목으로 삽입합니다.

SetAt(UInt32, UIElement)

지정된 인덱스에서 값을 지정된 UIElement 값으로 설정합니다.

적용 대상

추가 정보