TcxCustomCheckListBox.CopySelection(TcxCustomCheckListBox) Method
Copies selected items from the current checklist box to another list box control.
Declaration
procedure CopySelection(ADestination: TcxCustomCheckListBox);
Parameters
Name | Type |
---|---|
ADestination | TcxCustomCheckListBox |
Remarks
Call this procedure to copy selected items from the current list box to the specified one. Selected items are those that are displayed highlighted. See the Selected property to specify the selection state for specific items.
The ADestination parameter references the check list box to which selected items should be copied.
Consider the following handler for the OnDblClick event of the source check list box control. This copies the selected item when double-clicking the control to another check list box.
procedure TForm1.cxCheckListBox1DblClick(Sender: TObject);
begin
cxCheckListBox1.CopySelection(cxCheckListBox2);
end;
The MoveSelection method enables you to copy selected items to another check list box while deleting them from the current control.
See Also