Extended Tree ViewSync Parent Child Checked State Property
This is used to set or get whether or not the parent and child node checked states are synchronized
Definition
Namespace: EWSoftware.ListControls
Assembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2024.12.31.0
The default is false to match the standard tree view's behavior. This can be set to true to ensure that the checked state of parent and child nodes is synchronized. If a child node is checked, all parent nodes are marked as checked too. If a parent is checked or unchecked, all child nodes are checked or unchecked as well. The checkbox on parent nodes with a mix of checked and unchecked children are drawn as a mixed checkbox to make them easy to pick out when collapsed. This is accomplished by using the tree node's StateImageIndex property. If you have specified a custom state image list, the third image is used to represent the mixed state.
Assembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2024.12.31.0
C#
public bool SyncParentChildCheckedState { get; set; }VB
Public Property SyncParentChildCheckedState As Boolean
Get
SetC++
public:
property bool SyncParentChildCheckedState {
bool get ();
void set (bool value);
}F#
member SyncParentChildCheckedState : bool with get, setProperty Value
BooleanThe default is false to match the standard tree view's behavior. This can be set to true to ensure that the checked state of parent and child nodes is synchronized. If a child node is checked, all parent nodes are marked as checked too. If a parent is checked or unchecked, all child nodes are checked or unchecked as well. The checkbox on parent nodes with a mix of checked and unchecked children are drawn as a mixed checkbox to make them easy to pick out when collapsed. This is accomplished by using the tree node's StateImageIndex property. If you have specified a custom state image list, the third image is used to represent the mixed state.
Remarks
If you add or remove nodes from the tree after setting this to true, call
SynchronizeCheckedStates to refresh the state of the parent and child check states.