Jump to content
Software FX Community

Legend Size


User (Legacy)

Recommended Posts

I am trying to determine the size of the legend box.

I have a legend box displayed, stop at a break-point, and using the

Immediate Window in C# enter: ?this.chart1.LegendBoxObj.Width.

It always returns zero.

I have also tried determining it using a Watch Window.

Everything associated with LegendBoxObj Height and Width seems to be zero.

Is this a bug or am I doing something wrong?

Link to comment
Share on other sites

In the case I described, the chart was already showing the LegendBox.

Do I have to capture this size information in an event immediately after the

chart is drawn? If so, what event?

"SoftwareFX Support" <noreply@softwarefx.com> wrote in message

news:NRrQd2ihFHA.1484@webserver3.softwarefx.com...

> That's because the legend box size is only calculated when the chart is

> about to draw, after the chart is drawn you will get the right value.

>

> --

> Francisco Padron

> www.chartfx.com

>

Link to comment
Share on other sites

Since I was clicking the LegendBox in the popup menu, I kept looking at the 

LegendBoxObj never thinking that it was the Series LegendBox that was being

shown.....Thanks for the help....

"SoftwareFX Support" <noreply@softwarefx.com> wrote in message

news:xDEhWZvhFHA.1476@webserver3.softwarefx.com...

> Are you sure you are displaying the right Legend Box ?

>

> Notice that there are several legend boxes: SerLegBox, LegendBox,

> UserLegendBox.

>

> --

> Francisco Padron

> www.chartfx.com

>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...