Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

FormatConditionRuleDataBar.DrawAxisAtMiddle Property

Gets or sets whether to draw the vertical axis between positive and negative bars at the middle of the cell.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DefaultValue(false)]
[DXCategory("Behavior")]
[XtraSerializableProperty]
public bool DrawAxisAtMiddle { get; set; }

#Property Value

Type Default Description
Boolean false

true, to draw the axis at the middle of the cel; false, to draw the axis at the position specified by the proportion of the minimum negative value to the maximum positive value.

#Remarks

By default, the DrawAxisAtMiddle property is set to false, and thus the horizontal position of the vertical axis between positive and negative bars is determined automatically, depending on the proportion of the column’s minimum negative value to the column’s maximum positive value.

To draw the axis at the middle, set the DrawAxisAtMiddle property to true.

DrawAxisAtMiddle = false DrawAxisAtMiddle = true
FormatRule-DataBar-DrawAxisAtMiddleFalse FormatRule-DataBar-DrawAxisAtMiddleTrue

If the FormatConditionRuleDataBar.DrawAxis property is set to false, the axis is not displayed.

See Also