Back to Devexpress

CellElementData.DisplayText Property

wpf-devexpress-dot-xpf-dot-pivotgrid-dot-cellelementdata-818aaa9d.md

latest2.5 KB
Original Source

CellElementData.DisplayText Property

Gets the cell’s display text.

Namespace : DevExpress.Xpf.PivotGrid

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

NuGet Package : DevExpress.Wpf.PivotGrid

Declaration

csharp
public override string DisplayText { get; }
vb
Public Overrides ReadOnly Property DisplayText As String

Property Value

TypeDescription
String

The cell’s display text.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DisplayText property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-pivot-grid-create-context-menu-for-field-values/CS/WpfPivotGrid_CustomMenu/MainWindow.xaml.cs#L51

csharp
{
    Clipboard.SetDataObject(menuInfo.CellElementData.DisplayText);
}

wpf-pivot-grid-create-context-menu-for-field-values/VB/WpfPivotGrid_CustomMenu/MainWindow.xaml.vb#L40

vb
If menuInfo IsNot Nothing AndAlso menuInfo.CellElementData IsNot Nothing AndAlso Not Equals(menuInfo.CellElementData.Value.ToString(), String.Empty) Then
    Clipboard.SetDataObject(menuInfo.CellElementData.DisplayText)
End If

See Also

CellElementData Class

CellElementData Members

DevExpress.Xpf.PivotGrid Namespace