Back to Devexpress

FieldValueElementData.IsColumn Property

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

latest2.5 KB
Original Source

FieldValueElementData.IsColumn Property

Namespace : DevExpress.Xpf.PivotGrid

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

NuGet Package : DevExpress.Wpf.PivotGrid

Declaration

csharp
public bool IsColumn { get; }
vb
Public ReadOnly Property IsColumn As Boolean

Property Value

Type
Boolean

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the IsColumn 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-show-top-n-values-in-context-menu/CS/ContextMenuToShowTopN_Example/MainWindow.xaml.cs#L54

csharp
{
    string itemCaption = string.Format("Top 5 Values in this {0}", valueItem.IsColumn ? "Column" : "Row");
    BarCheckItem item = new BarCheckItem { Content = itemCaption };

wpf-pivot-grid-show-top-n-values-in-context-menu/VB/ContextMenuToShowTopN_Example/MainWindow.xaml.vb#L51

vb
If valueItem.IsLastLevelItem Then
    Dim itemCaption As String = String.Format("Top 5 Values in this {0}",If(valueItem.IsColumn, "Column", "Row"))
    Dim item As BarCheckItem = New BarCheckItem With {.Content = itemCaption}

See Also

FieldValueElementData Class

FieldValueElementData Members

DevExpress.Xpf.PivotGrid Namespace