Jump to content
Software FX Community

Legend Box Border not show up


User (Legacy)

Recommended Posts

I want show series legend and the series legend box border.

I draw chart in a Active Report, so I can only set the properties using code

but no matter how I set the chart1.SerLegBoxObj.ToolBorder, the legend

border not show up.

and the chart1.SerLegBoxObj.BackColor do not affect the display

chart1.SerLegBox = True

chart1.SerLegBoxObj.Alignment = SoftwareFX.ChartFX.ToolAlignment.Spread

chart1.SerLegBoxObj.AutoSize = True

chart1.SerLegBoxObj.ToolBorder = SoftwareFX.ChartFX.ToolBorder.Internal

chart1.SerLegBoxObj.BackColor = Color.Black

Link to comment
Share on other sites

I find the reason is I copied a sample code and set default border to none

chart1.BorderObject = New

SoftwareFX.ChartFX.DefaultBorder(SoftwareFX.ChartFX.BorderType.None,

System.Drawing.SystemColors.ActiveCaptionText)

"M" <mxc@hotvoice.com> wrote in message

news:uA7zrsUsEHA.3560@webserver3.softwarefx.com...

> I want show series legend and the series legend box border.

> I draw chart in a Active Report, so I can only set the properties using

code

>

> but no matter how I set the chart1.SerLegBoxObj.ToolBorder, the legend

> border not show up.

> and the chart1.SerLegBoxObj.BackColor do not affect the display

>

> chart1.SerLegBox = True

>

> chart1.SerLegBoxObj.Alignment = SoftwareFX.ChartFX.ToolAlignment.Spread

>

> chart1.SerLegBoxObj.AutoSize = True

>

> chart1.SerLegBoxObj.ToolBorder = SoftwareFX.ChartFX.ToolBorder.Internal

>

> chart1.SerLegBoxObj.BackColor = Color.Black

>

>

Link to comment
Share on other sites

The Problem is

I want show series legend box border and not show chart border.

How to do it?

If I comment out the statement:

'SoftwareFX.ChartFX.DefaultBorder(SoftwareFX.ChartFX.BorderType.None,

System.Drawing.SystemColors.ActiveCaptionText)

Chart Border also show up.

If I leave this statement, the SerLeg Box border cannot show up.

Link to comment
Share on other sites

The Series Legend Box will "inherit" the border from the chart so your code 

should look like

chart1.BorderObject = new DefaultBorder(BorderType.None);

chart1.SerLegBoxObj.BorderObject = new

DefaultBorder(BorderType.Color,Color.Red);

// Try Internal and External to see variations

chart1.SerLegBoxObj.ToolBorder = ToolBorder.Internal;

// Note that BackColor is only used when ToolBorder is not None (default)

chart1.SerLegBoxObj.BackColor = Color.Gray;

--

Regards,

JC

Software FX Support

"M" <mxc@hotvoice.com> wrote in message

news:0oapGdtsEHA.3240@webserver3.softwarefx.com...

> The Problem is

> I want show series legend box border and not show chart border.

> How to do it?

> If I comment out the statement:

> 'SoftwareFX.ChartFX.DefaultBorder(SoftwareFX.ChartFX.BorderType.None,

> System.Drawing.SystemColors.ActiveCaptionText)

> Chart Border also show up.

> If I leave this statement, the SerLeg Box border cannot show up.

>

>

>

Attachments.zip

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...