wpf-devexpress-dot-xpf-dot-pivotgrid-dot-fieldvalueelementdata-175d0166.md
Gets whether the visual element that corresponds to the field value is the last level item.
Namespace : DevExpress.Xpf.PivotGrid
Assembly : DevExpress.Xpf.PivotGrid.v25.2.dll
NuGet Package : DevExpress.Wpf.PivotGrid
public bool IsLastLevelItem { get; }
Public ReadOnly Property IsLastLevelItem As Boolean
| Type | Description |
|---|---|
| Boolean |
true if the visual element is the last level item; otherwise, false.
|
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the IsLastLevelItem 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.
FieldValueElementData valueItem = fvElement.ElementData as FieldValueElementData;
if (valueItem.IsLastLevelItem)
{
Dim valueItem As FieldValueElementData = TryCast(fvElement.ElementData, FieldValueElementData)
If valueItem.IsLastLevelItem Then
Dim itemCaption As String = String.Format("Top 5 Values in this {0}",If(valueItem.IsColumn, "Column", "Row"))
See Also