Dela via


VisualCollection.InsertAbove(Visual, Visual) Method

Definition

Inserts a visual above the specified sibling visual in the visual collection.

public:
 virtual void InsertAbove(Visual ^ newChild, Visual ^ sibling) = InsertAbove;
void InsertAbove(Visual const& newChild, Visual const& sibling);
public void InsertAbove(Visual newChild, Visual sibling);
function insertAbove(newChild, sibling)
Public Sub InsertAbove (newChild As Visual, sibling As Visual)

Parameters

newChild
Visual

The new visual to insert.

sibling
Visual

The sibling to insert the visual above.

Remarks

VisualCollections are ordered from bottom to top and iterating or enumerating through a collection is always done from bottom to top.

Applies to