Vcl.ComCtrls.TTreeNode.CheckState

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property CheckState: TNodeCheckState read GetCheckState write SetCheckState;

C++

__property TNodeCheckState CheckState = {read=GetCheckState, write=SetCheckState, nodefault};

Properties

Type Visibility Source Unit Parent
property public
Vcl.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls TTreeNode

Description

Property returns the current checkbox state of a node.

The following checkbox states can be returned:

  • ncsNone - when CheckBoxes is False.
  • ncsUnchecked - when a node is unchecked.
  • ncsChecked - when a node is checked.
  • ncsPartial - when not all the sub-nodes are checked, for a node with sub-nodes.
    Note: Supported when CheckStyles contains csPartial.
  • ncsDimmed - when a parent node is checked, for a node with a parent node.
    Note: Supported when CheckStyles constains csDimmed
  • ncsExclusion - is returned for a node with a parent node. Without this state a selection of parent node checks also this node.
    Note: Supported when CheckStyles constains csExclusion.

See Also