Back to Devexpress

PivotGridFormatRule.Measure Property

windowsforms-devexpress-dot-xtrapivotgrid-dot-pivotgridformatrule.md

latest2.8 KB
Original Source

PivotGridFormatRule.Measure Property

Gets or sets the data field to which the format rule is applied.

Namespace : DevExpress.XtraPivotGrid

Assembly : DevExpress.XtraPivotGrid.v25.2.dll

NuGet Package : DevExpress.Win.PivotGrid

Declaration

csharp
[DefaultValue(null)]
[DXCategory("Behavior")]
[PivotAreaProperty(PivotArea.DataArea)]
public PivotGridField Measure { get; set; }
vb
<DXCategory("Behavior")>
<DefaultValue(Nothing)>
<PivotAreaProperty(PivotArea.DataArea)>
Public Property Measure As PivotGridField

Property Value

TypeDefaultDescription
PivotGridFieldnull

A PivotGridField object to which the format rule is applied.

|

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

winforms-pivot-grid-apply-format-rules-to-data-cells/CS/WinFormsPivotGridFormatRules/Form1.cs#L13

csharp
// Sets a Measure.
newRule.Measure = fieldExtendedPrice;
// Creates and specifies a new Settings object.

winforms-pivot-grid-apply-format-rules-to-data-cells/VB/WinFormsPivotGridFormatRules/Form1.vb#L16

vb
' Sets a Measure.
newRule.Measure = fieldExtendedPrice
' Creates and specifies a new Settings object.

See Also

PivotGridFormatRule Class

PivotGridFormatRule Members

DevExpress.XtraPivotGrid Namespace