Back to Devexpress

PivotGridFieldValueMenuInfo.FieldValueElementData Property

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

latest2.8 KB
Original Source

PivotGridFieldValueMenuInfo.FieldValueElementData Property

Namespace : DevExpress.Xpf.PivotGrid

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

NuGet Package : DevExpress.Wpf.PivotGrid

Declaration

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

Property Value

Type
FieldValueElementData

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

csharp
PivotGridFieldValueMenuInfo menuInfo = pivotGrid.GridMenu.MenuInfo as PivotGridFieldValueMenuInfo;
if (menuInfo != null && menuInfo.FieldValueElementData != null &&
    menuInfo.FieldValueElementData.Value != null)

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

vb
Dim menuInfo As PivotGridFieldValueMenuInfo = TryCast(Me.pivotGrid.GridMenu.MenuInfo, PivotGridFieldValueMenuInfo)
If menuInfo IsNot Nothing AndAlso menuInfo.FieldValueElementData IsNot Nothing AndAlso menuInfo.FieldValueElementData.Value IsNot Nothing Then
    Clipboard.SetDataObject(menuInfo.FieldValueElementData.Value)

See Also

PivotGridFieldValueMenuInfo Class

PivotGridFieldValueMenuInfo Members

DevExpress.Xpf.PivotGrid Namespace