Back to Devexpress

PivotGridCellMenuInfo.CellElementData Property

wpf-devexpress-dot-xpf-dot-pivotgrid-dot-pivotgridcellmenuinfo.md

latest2.7 KB
Original Source

PivotGridCellMenuInfo.CellElementData Property

Namespace : DevExpress.Xpf.PivotGrid

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

NuGet Package : DevExpress.Wpf.PivotGrid

Declaration

csharp
public CellElementData CellElementData { get; }
vb
Public ReadOnly Property CellElementData As CellElementData

Property Value

Type
CellElementData

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CellElementData 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#L48

csharp
PivotGridCellMenuInfo menuInfo = pivotGrid.GridMenu.MenuInfo as PivotGridCellMenuInfo;
if (menuInfo != null && menuInfo.CellElementData != null &&
    menuInfo.CellElementData.Value.ToString() != string.Empty)

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

vb
Dim menuInfo As PivotGridCellMenuInfo = TryCast(Me.pivotGrid.GridMenu.MenuInfo, PivotGridCellMenuInfo)
If menuInfo IsNot Nothing AndAlso menuInfo.CellElementData IsNot Nothing AndAlso Not Equals(menuInfo.CellElementData.Value.ToString(), String.Empty) Then
    Clipboard.SetDataObject(menuInfo.CellElementData.DisplayText)

See Also

PivotGridCellMenuInfo Class

PivotGridCellMenuInfo Members

DevExpress.Xpf.PivotGrid Namespace