2011-10-11 34 views
1

在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

回答

0

有一对夫妇的方式传说对齐到右上角,一个办法是:

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

,或者如果你想要的图形区域内的传奇:

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