Back to Devexpress

TreeListView.ClipboardDataProvider Property

wpf-devexpress-dot-xpf-dot-grid-dot-treelistview-07258d1e.md

latest2.6 KB
Original Source

TreeListView.ClipboardDataProvider Property

Gets an object that returns data for the clipboard in a variety of formats (plain text, plain unicode text, rich text, CSV, Biff8, HTML).

Namespace : DevExpress.Xpf.Grid

Assembly : DevExpress.Xpf.Grid.v25.2.dll

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
[Browsable(false)]
public virtual TreeListClipboardDataProvider ClipboardDataProvider { get; }
vb
<Browsable(False)>
Public Overridable ReadOnly Property ClipboardDataProvider As TreeListClipboardDataProvider

Property Value

TypeDescription
TreeListClipboardDataProvider

An object that provides data for the clipboard in a variety of formats.

|

Remarks

Use this property to access a TreeListClipboardDataProvider object. This object’s methods allow you to obtain selected grid data that is passed to the clipboard when the user presses Ctrl + C. The following data formats are supported: plain text, rich text, plain unicode text, CSV, Biff8, HTML. For example, the TreeListClipboardDataProvider.GetCsvData method returns data for the clipboard in the plain text format.

csharp
treeListView.ClipboardDataProvider.GetCsvData();

// The method returns the following value:
//
// Region,March,September,March,September,Market Share
// Canada,25390,27000,79.52%,74.52%,64%
// Mexico,12400,12650,-2.42%,-1.58%,65%
// USA,31400,32800,3.50%,2.62%,87%
vb
treeListView.ClipboardDataProvider.GetCsvData()

' The method returns the following value:
'
' Region,March,September,March,September,Market Share
' Canada,25390,27000,79.52%,74.52%,64%
' Mexico,12400,12650,-2.42%,-1.58%,65%
' USA,31400,32800,3.50%,2.62%,87%

See Also

TreeListView Class

TreeListView Members

DevExpress.Xpf.Grid Namespace