Skip to main content
A newer version of this page is available. .

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.v18.2.dll

Declaration

[DefaultValue(false)]
[XtraSerializableProperty]
[DXCategory("Behavior")]
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