Share via


IXRUIElementCollection::Clear (Compact 2013)

3/28/2014

This method removes all items from the IXRUIElementCollection collection.

Syntax

virtual HRESULT STDMETHODCALLTYPE Clear() = 0;

Parameters

None.

Return Value

Returns S_OK if successful; otherwise, returns an HRESULT error code. For common error codes for XAML for Windows Embedded, see XAML for Windows Embedded Error Messages.

Remarks

After you call this method, the value retrieved by IXRUIElementCollection::GetCount is 0 (zero), and references to other objects from the items that were in this collection are also released.

.NET Framework Equivalent

System.Windows.PresentationFrameworkCollection(T).Clear

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRUIElementCollection
IXRPanel::GetChildren