TRzCheckTree if RzCheckTree1.Selected.StateIndex = 2 then //则为选中状态 else if RzCheckTree1.Selected.StateIndex = 1 then //则为未选中状态 else if RzCheckTree1.Selected.StateIndex = 3 then //则为未全选状态 if RzCheckTree1.ItemState[I] = csUnchecked then //为未选中状态 if RzCheckTree1.ItemState[I] = cschecked then //为选中状态 2: 设置 RzCheckTree1.ItemState[I] := csUnchecked //为未选中状态 RzCheckTree1.ItemState[I] := cschecked //为选中状态