constants AllowCopyPasteEnum
The AllowCopyPasteEnum type specifies the Copy, Cut, and Paste operations that the control can support. It defines a set of values that determine which clipboard-related actions are enabled within the control. The AllowCopyPaste property utilizes this enumeration to configure whether the control automatically handles copy and paste operations without requiring additional code. By setting this property, you can enable or restrict clipboard functionality according to the selected values from the AllowCopyPasteEnum. The AllowCopyPasteEnum type includes the following values, each representing a specific operation or combination of operations that the control can handle:

NameValueDescription
exNoCopyPaste0 Disables all copy, cut, and paste operations. The control does not support any clipboard interactions
exAllowCopy1 Enables the ability to copy selected content from the control to the clipboard. The user can use standard copy commands (e.g., Ctrl+C) to transfer data from the control.
exAllowCut2 Allows cutting selected content from the control. When this option is enabled, users can remove data from the control and place it in the clipboard using the cut command (e.g., Ctrl+X)
exAllowPaste4 Enables pasting content from the clipboard into the control. When active, users can paste copied or cut data into the control using standard paste commands (e.g., Ctrl+V). By default, when pasting data from the clipboard, the control inserts the clipboard content immediately after the focused item. However, if the user presses CTRL + SHIFT + V, the control inserts the clipboard content before the focused item. This behavior provides flexibility in positioning pasted data within the control's structure.
exCopyValue16 Copies only the values of the selected items or cells, ignoring formatting or additional metadata. This ensures that only the raw text or numerical data is transferred. The CellValue property defines the actual value stored in the cell, while the CellCaption property specifies the displayed text or caption of the cell.
exCopyChildrenRec256 Copies the selected item along with all its child items in a recursive manner. This is useful when working with hierarchical structures, ensuring that the entire subtree is copied to the clipboard.
  • If this flag is not set, the control can still copy selected items along with their hierarchy. In other words, if both a parent and its child are selected, they will be pasted while maintaining their hierarchy.
  • If this flag is set and a parent item is selected, all its descendants will automatically be copied and pasted as a hierarchy.