You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何移除Infragistics WinForms Composite Chart(复合图表)的边框?

移除Infragistics WinForms 2018.1 Composite Chart黑色边框的有效方法

针对你遇到的Infragistics WinForms 2018.1版本Composite Chart黑色边框无法移除的问题,试试以下几种方案:

  • 设置ChartArea边框样式为None
    Infragistics控件中,边框样式的优先级高于颜色和厚度设置,直接将样式设为None更有效:

    this.Curva.CompositeChart.ChartAreas[0].Border.Style = Infragistics.Win.UIElementBorderStyle.None;
    
  • 检查PlotArea的边框
    有时黑色边框来自PlotArea而非外层ChartArea,需要单独设置:

    this.Curva.CompositeChart.ChartAreas[0].PlotArea.Border.Style = Infragistics.Win.UIElementBorderStyle.None;
    
  • 批量处理所有图层的边框
    如果使用了多图层,要确保每个图层对应的区域边框都被设置:

    foreach (var layer in this.Curva.CompositeChart.Layers)
    {
        if (layer is IChartLayer chartLayer)
        {
            chartLayer.ChartArea.Border.Style = Infragistics.Win.UIElementBorderStyle.None;
            chartLayer.ChartArea.PlotArea.Border.Style = Infragistics.Win.UIElementBorderStyle.None;
        }
    }
    
  • 确认控件本身的边框设置
    最后检查CompositeChart控件自身的边框:

    this.Curva.CompositeChart.Border.Style = Infragistics.Win.UIElementBorderStyle.None;
    

注:2018.1版本的Infragistics WinForms控件中,仅设置边框颜色透明或厚度为0可能无法完全生效,直接修改边框样式为None是更可靠的方式。

内容的提问来源于stack exchange,提问作者Marco Antonio

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.26 10:34:55