Show / Hide Table of Contents

Method TreeBase-1.AddSibling


Overload

Inserts node n before or after this node as a sibling.

public void AddSibling(T n, bool after)
Parameters
n  (T)
after  (bool)

Insert n after this node. If false (default), inserts before this node.

Exceptions
ArgumentException

See TreeBase<T>.AddChild.

InvalidOperationException

This node does not have parent (TreeBase<T>.Parent is null).