Skip to main content

AxisRange.SideMarginsEnabled Property

Specifies whether or not a space should be left between the outermost series points and the diagram's edges.

Namespace: DevExpress.Xpf.Charts

Assembly: DevExpress.Xpf.Charts.v14.2.dll

#Declaration

[XtraSerializableProperty]
public bool SideMarginsEnabled { get; set; }

#Property Value

Type Description
Boolean

true if the axis range is automatically widened; otherwise false.

#Remarks

Use the SideMarginsEnabled property for an axis to automatically extend its range, so that indents are preserved on the both ends of the axis.

NOTE

When use the Numerical scale type, you can change side margins only for automatically calculated axis ranges.

The following table illustrates how the SideMarginsEnabled property works.

SideMarginsEnabled = false SideMarginsEnabled = true
Charts- SideMarginsEnabled- False Charts- SideMarginsEnabled- True

#Examples

The following example demonstrates how to change the AxisRange.SideMarginsEnabled property value.

See Also