Table of Contents

Method Assign

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Assign(TreeViewItem)

Copies the properties and child items from the specified TreeViewItem to the current instance.

public virtual void Assign(TreeViewItem assignFrom)

Parameters

assignFrom TreeViewItem

The TreeViewItem whose properties and child items are to be copied. Cannot be null.

Remarks

This method copies the visibility and expansion state of the source item, clears the current item's child collection, and adds clones of the source item's children to the current instance. The cloning operation ensures that the child items are independent of the source item's children.