Skip to main content

TcxCustomListView.CopySelection(TCustomListControl) Method

Copies the selection from one list view to another.

Declaration

procedure CopySelection(Destination: TCustomListControl);

Parameters

Name Type
Destination TCustomListControl

Remarks

Use CopySelection to duplicate the selection from the current list view to another one, which is specified by the Destination parameter.

The following code demonstrates using of this method:

cxListView1.CopySelection(TCustomListControl(cxListView2.InnerListView));

Note

This method creates copies of the selected items in the Items collection of the destination list view. If that list view control has no associated image lists (see the LargeImages, SmallImages and StateImages properties), then the copied items will have no associated images.

See Also