VisualCollection.InsertAbove(Visual, Visual) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.