Back to Devexpress

FieldValueElementData.Value Property

wpf-devexpress-dot-xpf-dot-pivotgrid-dot-fieldvalueelementdata-f39d29d5.md

latest3.1 KB
Original Source

FieldValueElementData.Value Property

Gets the value of the field value cell.

Namespace : DevExpress.Xpf.PivotGrid

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

NuGet Package : DevExpress.Wpf.PivotGrid

Declaration

csharp
public override object Value { get; }
vb
Public Overrides ReadOnly Property Value As Object

Property Value

TypeDescription
Object

An object that contains information about the cell’s value.

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the Value 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#L25

csharp
if (menuInfo != null && menuInfo.FieldValueElementData != null &&
    menuInfo.FieldValueElementData.Value != null)
{

wpf-pivot-grid-create-field-value-template/CS/HowToCreateFieldValueTemplate/CategoriesControl.cs#L77

csharp
if(item != null && !item.IsOthersRow && !string.IsNullOrEmpty(item.DisplayText)) {
    ImageSource = CategoriesControl.GetImage(item.Value as string);
} else {

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

FieldValueElementData Class

FieldValueElementData Members

DevExpress.Xpf.PivotGrid Namespace