using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Microsoft.Research.DynamicDataDisplay.Charts { /// /// Represents a vertical axis with values of type. /// public class VerticalTimeSpanAxis : TimeSpanAxis { /// /// Initializes a new instance of the class, placed (by default) on the left side of . /// public VerticalTimeSpanAxis() { Placement = AxisPlacement.Left; } /// /// Validates the placement - e.g., vertical axis should not be placed from top or bottom, etc. /// If proposed placement is wrong, throws an ArgumentException. /// /// The new placement. protected override void ValidatePlacement(AxisPlacement newPlacement) { if (newPlacement == AxisPlacement.Bottom || newPlacement == AxisPlacement.Top) throw new ArgumentException(Strings.Exceptions.VerticalAxisCannotBeHorizontal); } } }