在ZedGraph右上方对齐传奇

时间:2011-10-11 03:09:00

标签: zedgraph

在ZedGraph右上角对齐传奇。

 myPane.Legend.Position = ZedGraph.LegendPos.TopCenter; // This way working.

我试过这种方式并没有奏效。

 //myPane.Legend.Location.AlignH = AlignH.Right;
//myPane.Legend.Location.AlignV = AlignV.Top;
//Location(0.95, 0.15,);// CoordType.PaneFraction, AlignH.Right, AlignV.Top);
//AlignV.Top; //(0.95, 0.15, CoordType.PaneFraction, AlignH.Right, AlignV.Top);

任何建议。 谢谢 ocaccy

1 个答案:

答案 0 :(得分:0)

有几种方法可以将图例与右上角对齐,其中一种方法是:

myPane.Legend.Position = ZedGraph.LegendPos.Right;

或者如果您想要图表区域内的图例:

myPane.Legend.Position = ZedGraph.LegendPos.InsideTopRight;
相关问题