Class TreeTableBranch
A branch in a tree.
Inheritance
Inherited Members
Namespace: Syncfusion.UI.Xaml.Collections
Assembly: Syncfusion.SfGrid.UWP.dll
Syntax
public class TreeTableBranch : TreeTableNode, IDisposable, ITreeTableBranch, ITreeTableNode
Constructors
TreeTableBranch(TreeTable)
Initializes a new branch.
Declaration
public TreeTableBranch(TreeTable tree)
Parameters
Type | Name | Description |
---|---|---|
TreeTable | tree |
Properties
Color
Gets / sets Red-Black tree algorithm helper.
Declaration
public TreeTableNodeColor Color { get; set; }
Property Value
Type |
---|
TreeTableNodeColor |
Left
Gets / sets the left leaf or branch.
Declaration
public ITreeTableNode Left { get; set; }
Property Value
Type |
---|
ITreeTableNode |
Right
Gets / sets the right tree or branch.
Declaration
public ITreeTableNode Right { get; set; }
Property Value
Type |
---|
ITreeTableNode |
Methods
GetCount()
Returns the number of child nodes (+1 for the current node).
Declaration
public override int GetCount()
Returns
Type |
---|
System.Int32 |
Overrides
GetEntryPositionOfChild(ITreeTableNode)
Returns the position in the tree table of the specific child node.
Declaration
public virtual int GetEntryPositionOfChild(ITreeTableNode node)
Parameters
Type | Name | Description |
---|---|---|
ITreeTableNode | node |
Returns
Type |
---|
System.Int32 |
GetLeftB()
Returns the left node cast to ITreeTableBranch.
Declaration
public ITreeTableBranch GetLeftB()
Returns
Type |
---|
ITreeTableBranch |
GetMinimum()
Returns the minimum value (of the most-left leaf) of the branch in a sorted tree.
Declaration
public override object GetMinimum()
Returns
Type |
---|
System.Object |
Overrides
GetRightB()
Returns the right node cast to ITreeTableBranch.
Declaration
public ITreeTableBranch GetRightB()
Returns
Type |
---|
ITreeTableBranch |
InvalidateCountBottomUp()
Sets this object's child node count dirty and walks up parent nodes and marks their child node count dirty.
Declaration
public virtual void InvalidateCountBottomUp()
InvalidateCountTopDown()
Sets this object's child node count dirty and steps through all child branches and marks their child node count dirty.
Declaration
public virtual void InvalidateCountTopDown()
InvalidateMinimumBottomUp()
Sets this object's child node minimum dirty and marks parent nodes' child node minimum dirty.
Declaration
public virtual void InvalidateMinimumBottomUp()
InvalidateMinimumTopDown()
Sets this object's child node minimum dirty and steps through all child branches and marks their child node minimum dirty.
Declaration
public virtual void InvalidateMinimumTopDown()
IsEntry()
Indicates whether this is a leaf.
Declaration
public override bool IsEntry()
Returns
Type |
---|
System.Boolean |
Overrides
SetLeft(ITreeTableNode, Boolean, Boolean)
Sets the left node.
Declaration
public virtual void SetLeft(ITreeTableNode value, bool inAddMode, bool isSorted)
Parameters
Type | Name | Description |
---|---|---|
ITreeTableNode | value | The new node. |
System.Boolean | inAddMode | Indicates whether tree-table is in add-mode. |
System.Boolean | isSorted | Indicates whether tree-table is sorted. |
Remarks
Call this method instead of simply setting Left property if you want to avoid the round-trip call to check whether the tree is in add-mode or if tree-table is sorted.
SetRight(ITreeTableNode, Boolean)
Sets the right node.
Declaration
public virtual void SetRight(ITreeTableNode value, bool inAddMode)
Parameters
Type | Name | Description |
---|---|---|
ITreeTableNode | value | The new node. |
System.Boolean | inAddMode | Indicates whether tree-table is in add-mode. |
Remarks
Call this method instead of simply setting Right property if you want to avoid the round-trip call to check whether the tree is in add-mode or if tree-table is sorted.