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

TreeList.CopyToClipboard() Method

In This Article

Copies selected nodes to the Clipboard.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v24.2.dll

NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.TreeList

#Declaration

public void CopyToClipboard()

#Remarks

The CopyToClipboard method copies selected nodes to the Clipboard. The way data is copied to the Clipboard is affected by the following options:

  • TreeListOptionsClipboard.CopyColumnHeaders - Gets or sets whether column captions are copied to the Clipboard.
  • TreeListOptionsClipboard.CopyNodeHierarchy - Gets or sets whether selected nodes are copied to the clipboard with or without indents that reflect node hierarchy levels.

If the TreeListOptionsClipboard.AllowCopy property is enabled, an end-user can copy selected nodes to the Clipboard via the CTRL+C shortcut.

Multiple node selection can be enabled via the TreeListOptionsSelection.MultiSelect property. All selected nodes can be accessed via the TreeList.Selection property.

See Also