XamlDirect.RemoveFromCollectionAt(IXamlDirectObject, UInt32) 메서드

정의

지정된 인덱스의 IXamlDirectObject 컬렉션에서 값을 제거하려고 시도합니다.

public:
 virtual void RemoveFromCollectionAt(IXamlDirectObject ^ xamlDirectObject, unsigned int index) = RemoveFromCollectionAt;
void RemoveFromCollectionAt(IXamlDirectObject const& xamlDirectObject, uint32_t const& index);
public void RemoveFromCollectionAt(IXamlDirectObject xamlDirectObject, uint index);
function removeFromCollectionAt(xamlDirectObject, index)
Public Sub RemoveFromCollectionAt (xamlDirectObject As IXamlDirectObject, index As UInteger)

매개 변수

xamlDirectObject
IXamlDirectObject

특정 IXamlDirectObject 컬렉션을 참조합니다.

index
UInt32

unsigned int

uint32_t

값을 제거해야 하는 컬렉션의 인덱스를 참조합니다.

예제

다음 예제에서는 XamlDirect API를 사용하여 특정 인덱스에서 값을 제거하는 방법을 보여 줍니다.

XamlDirect xd = XamlDirect.GetDefault();

IXamlDirectObject relativePanel = xd.CreateInstance(XamlTypeIndex.RelativePanel);

IXamlDirectObject childrenCollection = xd.GetXamlDirectObjectProperty(relativePanel, XamlPropertyIndex.Panel_Children);

xd.RemoveFromCollectionAt(childrenCollection, 0);
XamlDirect^ xd = XamlDirect::GetDefault();

IXamlDirectObject^ relativePanel = xd->CreateInstance(XamlTypeIndex::RelativePanel);

IXamlDirectObject^ childrenCollection = xd->GetXamlDirectObjectProperty(relativePanel, XamlPropertyIndex::Panel_Children);

xd->RemoveFromCollectionAt(childrenCollection, 0);

적용 대상

추가 정보