Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Tools for Microsoft .Net & .Net Compact Framework
 QCChart2D and QCChart2D CF (VB and C#)
 Lengend Width and Height
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

pachart

15 Posts

Posted - 02 Feb 2004 :  12:47:11  Show Profile  Reply with Quote
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  Show Profile  Reply with Quote
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-07 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07