windowsforms-devexpress-dot-xtrapivotgrid-dot-pivotgridformatrule.md
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
[DefaultValue(null)]
[DXCategory("Behavior")]
[PivotAreaProperty(PivotArea.DataArea)]
public PivotGridField Measure { get; set; }
<DXCategory("Behavior")>
<DefaultValue(Nothing)>
<PivotAreaProperty(PivotArea.DataArea)>
Public Property Measure As PivotGridField
| Type | Default | Description |
|---|---|---|
| PivotGridField | null |
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
// 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
' Sets a Measure.
newRule.Measure = fieldExtendedPrice
' Creates and specifies a new Settings object.
See Also