22 lines
529 B
C#
22 lines
529 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace Microsoft.Research.DynamicDataDisplay.Charts.Axes
|
|
{
|
|
public class VerticalNumericAxis : NumericAxis
|
|
{
|
|
public VerticalNumericAxis()
|
|
{
|
|
Placement = AxisPlacement.Left;
|
|
}
|
|
|
|
protected override void ValidatePlacement(AxisPlacement newPlacement)
|
|
{
|
|
if (newPlacement == AxisPlacement.Bottom || newPlacement == AxisPlacement.Top)
|
|
throw new ArgumentException(Strings.Exceptions.VerticalAxisCannotBeHorizontal);
|
|
}
|
|
}
|
|
}
|