Property ColorGetter
ColorGetter
Delegate for basic multi-colored tree view use cases. Return the Scheme to use for each passed object, or null to use the default tree view scheme.
public Func<T, Scheme?>? ColorGetter { get; set; }
Property Value
Remarks
TreeView uses only Normal, Focus, and Active from the returned scheme.
<ul><li><span class="term">Normal</span>Used for unselected branches.</li><li><span class="term">Focus</span>Used for selected branches when the tree view has focus.</li><li><span class="term">Active</span>Used for selected branches when the tree view does not have focus.</li></ul>
For greater control over rendering, handle the DrawLine event instead.