本文介绍了在Asp.chart控件中删除边框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我只想在asp.chart控件中删除边框.
谢谢
I just want to remove border in asp.chart control.
Thanks
推荐答案
using System.Web.UI.DataVisualization.Charting;
...
<pre lang="c#">
private void Page_Load(object sender, System.EventArgs e)
{
// Set Border Skin
Chart1.BorderSkin.SkinStyle = BorderSkinStyle.FrameThin6;
// Set Background Primary Color
Chart1.BorderSkin.BackColor = Color.Red;
// Set Background Secondary Color
Chart1.BorderSkin.BackSecondaryColor = Color.Blue;
// Set Hatch Style
Chart1.BorderSkin.BackHatchStyle = ChartHatchStyle.DarkVertical;
// Set Gradi<pre lang="c#">
ent类型
Chart1.BorderSkin.BackGradientStyle = GradientStyle.DiagonalRight;
//设置边框颜色
Chart1.BorderSkin.BorderColor =颜色.黄色;
//设置边框样式
Chart1.BorderSkin.BorderDashStyle = ChartDashStyle.Solid;
//设置边框宽度
Chart1.BorderSkin.BorderWidth = 2;
}
ent Type
Chart1.BorderSkin.BackGradientStyle = GradientStyle.DiagonalRight;
// Set Border Color
Chart1.BorderSkin.BorderColor = Color.Yellow;
// Set Border Style
Chart1.BorderSkin.BorderDashStyle = ChartDashStyle.Solid;
// Set Border Width
Chart1.BorderSkin.BorderWidth = 2;
}
这篇关于在Asp.chart控件中删除边框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!