Author |
Topic  |
|
pachart
15 Posts |
Posted - 02 Feb 2004 : 12:47:11
|
I tried to change the size of the legend on a chart. It doesn't work. Maybe I missunderstood. I want to change the rectangle width and height of the legend but it always use the same size.
You can reproduce the problem in the demo saxample LineFill chart (VB.Net Version). Change the legend setting from : Dim legend As New StandardLegend(0.2, 0.15, 0.25, 0.3, legendAttributes, StandardLegend.VERT_DIR) to Dim legend As New StandardLegend(0.2, 0.15, 0.5, 0.5, legendAttributes, StandardLegend.VERT_DIR)
The rectangle of the legend will stay the same as it was. Is there another parameter I have to change?
|
|
quinncurtis
1164 Posts |
Posted - 02 Feb 2004 : 14:20:57
|
The legend rectangle is automatically sized to the size of the text, though this may not always work. If you want to manually size the legend rectangle, set the StandardLegend.AutoSizeLegendRectangle property False.
Dim legend As New StandardLegend(0.2, 0.15, 0.1, 0.1, _ legendAttributes, StandardLegend.VERT_DIR)
legend.AutoSizeLegendRectangle = False
|
 |
|
|
Topic  |
|
|
|