日期:2014-05-20 浏览次数:20952 次
Chart1.ChartAreas["ChartArea1"].AxisX.LabelAutoFitMaxFontSize=5;
CustomLabel myCustomLabel1 = new CustomLabel();
myCustomLabel1.Text = "工作服";
myCustomLabel1.FromPosition = 0.5;
myCustomLabel1.ToPosition = 1.5;
myCustomLabel1.RowIndex = 1;
myCustomLabel1.LabelMark = LabelMarkStyle.SideMark;
myCustomLabel1.ForeColor = System.Drawing.Color.FromArgb(255, 0, 0, 0);
Chart1.ChartAreas["ChartArea1"].AxisX.CustomLabels.Add(myCustomLabel1);
myCustomLabel1.Axis.LabelAutoFitMaxFontSize = 10;//放在前面一行不行,说未实列化对象