public Axis(AxisTypes axisType) { AxisType = axisType; _caption = string.Empty; _scaling = Scalings.Linear; _numberMode = NumberModes.Normal; _dimension = null; _unitName = string.Empty; _gridLines = false; _min = null; _max = null; Visible = true; _defaultLineStyle = defaultLineStyleForAxisType(); _defaultColor = Color.White; Rules = new BusinessRuleSet(ValidationRules.AllRules()); }
private string GetNumberFormat(NumberModes mode, int width) { return NumberFormats[mode].Replace("X", "X" + width); }