Skip to main content

ClipboardNodePastingEventArgs.Values Property

Returns a dictionary that contains “target column - pasted value” pairs. You can modify pasted values in this dictionary to perform custom pasting.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v23.2.dll

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

Declaration

public TreeListPasteNodeValues Values { get; }

Property Value

Type Description
DevExpress.XtraTreeList.TreeListPasteNodeValues

The dictionary of “target column - pasted value” pairs.

Remarks

At the beginning of a paste operation, the control traverses through the pasted data to identify individual paste values (e.g., when pasting a text string, the TAB character is regarded as a separator between individual values). These individual paste values can be obtained from the ClipboardNodePastingEventArgs.OriginalValues read-only collection. The control then creates “target column - paste value” pairs, which can be accessed from the ClipboardNodePastingEventArgs.Values dictionary.

In PasteMode.Update mode (see the ClipboardOptions.PasteMode setting accessible from TreeList.OptionsClipboard), the pasted data updates the rectangular cell block whose upper left corner is identified by the currently focused cell. The focused column is the first target column for the paste operation. The next visible column is the second target column, etc. The columns prior to the focused column are never updated, and they are not included in the ClipboardNodePastingEventArgs.Values dictionary.

See Also