Partager via


IXRUIElementCollection::Move (Compact 2013)

3/28/2014

This method moves an item in the IXRUIElementCollection collection from the specified index to the specified position.

Syntax

virtual HRESULT STDMETHODCALLTYPE Move(
    __in int Index,
    __in int Position
) = 0;

Parameters

  • Index
    [in] Integer value that indicates the current zero-based index value of the object that you want to move.
  • Position
    [in] Integer value that indicates the zero-based index value of the position where you want to move the object.

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

If Index is equal to the value retrieved by IXRUIElementCollection::GetCount, the item is moved to the end of this collection.

When an item is moved into this collection, the index values of all items between the current and new position are updated.

The Index and Position parameters cannot have the same value, and the difference between the two parameter values must be at least 2. If any of these conditions is not true, this function has no effect.

.NET Framework Equivalent

None.

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRUIElementCollection
IXRPanel::GetChildren