代码之家  ›  专栏  ›  技术社区  ›  Gautzilla

在winforms ChartDashStyle中设置自定义间距

  •  0
  • Gautzilla  · 技术社区  · 2 年前

    有没有一种方法可以自定义 ChartDashStyle.Dash 破折号样式?

    我正在用实线、短划线和点样式绘制几个系列,但当我的图形太小时,短划线和圆点样式看起来像实线。

    我只是通过增加 BorderWidth 参数,但是这条线的宽度确实太宽了。

    我最初绘制的线条宽度较小: the dashes are not spaced enough

    然后我增加了该系列的边框宽度: the lines are too wide (and still the dashes look too close to each other

    是否有一种方法可以指定自定义短划线样式,因为它似乎存在于Pen类中?

    0 回复  |  直到 2 年前