标签:
private void SetHZTitle(ref ChartControl chartControl, string HTitle) { chartControl.Titles.Clear(); //先清除以前的标题 //横标题设置 ChartTitle titles = new ChartTitle(); //声明标题 titles.Text = HTitle; //名称 titles.TextColor = System.Drawing.Color.Yellow; //颜色 titles.Indent = 1; //设置距离 值越小柱状图就越大 titles.Font = new Font("Tahoma", 7, FontStyle.Bold); //设置字体 titles.Dock = ChartTitleDockStyle.Top; //设置对齐方式 titles.Indent = 0; titles.Alignment = StringAlignment.Center; //居中对齐 chartControl.Titles.Add(titles); //添加标题 }
DevExpress ChartControl 设置它的标题
标签:
原文地址:http://www.cnblogs.com/zhangyuanbo12358/p/4699264.html