Class TreeDataModel
Namespace: VelloSharp.TreeDataGrid
Assembly: VelloSharp.TreeDataGrid.dll
public sealed class TreeDataModel : IDisposable
Inheritance
Implements
Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
TreeDataModel()
public TreeDataModel()
Methods
AttachChildren(uint, ReadOnlySpan<TreeNodeDescriptor>)
public void AttachChildren(uint parentNodeId, ReadOnlySpan<TreeNodeDescriptor> descriptors)
Parameters
parentNodeId
uint
descriptors
ReadOnlySpan<TreeNodeDescriptor>
AttachRoots(ReadOnlySpan<TreeNodeDescriptor>)
public void AttachRoots(ReadOnlySpan<TreeNodeDescriptor> descriptors)
Parameters
descriptors
ReadOnlySpan<TreeNodeDescriptor>
Clear()
public void Clear()
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
DrainModelDiffs()
public IReadOnlyList<TreeModelDiff> DrainModelDiffs()
Returns
DrainSelectionDiffs()
public IReadOnlyList<TreeSelectionDiff> DrainSelectionDiffs()
Returns
IReadOnlyList<TreeSelectionDiff>
GetMetadata(uint)
public TreeNodeMetadata GetMetadata(uint nodeId)
Parameters
nodeId
uint
Returns
SelectRange(uint, uint)
public void SelectRange(uint anchorNodeId, uint focusNodeId)
Parameters
anchorNodeId
uint
focusNodeId
uint
SetExpanded(uint, bool)
public void SetExpanded(uint nodeId, bool expanded)
Parameters
nodeId
uint
expanded
bool
SetSelected(uint, TreeSelectionMode)
public void SetSelected(uint nodeId, TreeSelectionMode mode)
Parameters
nodeId
uint
mode
TreeSelectionMode
TryDequeueMaterialization(out uint)
public bool TryDequeueMaterialization(out uint nodeId)
Parameters
nodeId
uint