Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxCustomCheckListBox.CopySelection(TcxCustomCheckListBox) Method

Copies selected items from the current checklist box to another list box control.

#Declaration

Delphi
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.

Delphi
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