A newer version of this page is available. Switch to the current version.

AxisRange.MaxValue Property

Obsolete. Gets or sets the maximum value to display on an Axis. This may not be the same as the maximum value of the series associated with this axis.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v18.2.dll

Declaration

[Obsolete("This property is obsolete now. Use AxisBase.VisualRange.MaxValue instead.")]
[Browsable(false)]
[TypeConverter(typeof(AxisRangeMaxValueTypeConverter))]
[XtraSerializableProperty(XtraSerializationVisibility.Hidden)]
[NonTestableProperty]
public virtual object MaxValue { get; set; }
<Obsolete("This property is obsolete now. Use AxisBase.VisualRange.MaxValue instead.")>
<Browsable(False)>
<TypeConverter(GetType(AxisRangeMaxValueTypeConverter))>
<XtraSerializableProperty(XtraSerializationVisibility.Hidden)>
<NonTestableProperty>
Public Overridable Property MaxValue As Object

Property Value

Type Description
Object

A Object that specifies the maximum value to display on an axis.

Remarks

Use the MaxValue property to specify or obtain the maximum value to display on an axis.

Note that the MaxValue and AxisRange.Auto properties are interdependent: changing one property will reset the other property.

NOTE

Dealing with Qualitative or DateTime scale types, it may be required to determine the maximum value more precisely than allowed by these scale types. For example, for an axis whose AxisBase.DateTimeMeasureUnit property is set to Year, it may be required to restrict its range by a Month. For this, you can use the AxisRange.MaxValueInternal property, which stores the internal, numeric representation of Qualitative and DateTime values.

For more information, refer to Visual Ranges and Whole Ranges .

Examples

This example demonstrates how the appearance of a pane's scroll bar can be customized.

Note that for a pane, it's possible to individually adjust the position and visibility of its X and Y-axis' scroll bars.

ScrollBarOptions scrollBarOptions = diagram.DefaultPane.ScrollBarOptions;

scrollBarOptions.BackColor = Color.White;
scrollBarOptions.BarColor = Color.Blue;
scrollBarOptions.BorderColor = Color.Navy;
scrollBarOptions.BarThickness = 15;
scrollBarOptions.XAxisScrollBarAlignment = ScrollBarAlignment.Far;
scrollBarOptions.XAxisScrollBarVisible = true;
See Also