2011-10-11 69 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;