0

我正在使用ZedGraphControl但似乎无法使用完整的 GraphPane。X 轴的每一侧都有灰色填充区域。我已经设置了以下,但它没有用。

myPane.XAxis.Scale.MinAuto = true;
myPane.XAxis.Scale.MaxAuto = true;

myPane.YAxis.Scale.MinAuto = true;
myPane.YAxis.Scale.MaxAuto = true;

myPane.Y2Axis.Scale.MinAuto = true;
myPane.Y2Axis.Scale.MaxAuto = true;
4

1 回答 1

0

我不确定这是否是您要查找的内容,但也许可以尝试在您的 ZedGraph 控件上设置以下属性

  zedGraphControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((((
        System.Windows.Forms.AnchorStyles.Top
        | System.Windows.Forms.AnchorStyles.Bottom) 
        | System.Windows.Forms.AnchorStyles.Left) 
        | System.Windows.Forms.AnchorStyles.Right)));
  zedGraphControl1.AutoSize = true;
  zedGraphControl1.Location = new System.Drawing.Point(0, 0);
  zedGraphControl1.Margin = new System.Windows.Forms.Padding(0);
于 2013-06-04T18:28:39.140 回答