User (Legacy) Posted October 13, 2004 Report Share Posted October 13, 2004 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 More sharing options...
User (Legacy) Posted October 14, 2004 Author Report Share Posted October 14, 2004 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 More sharing options...
User (Legacy) Posted October 15, 2004 Author Report Share Posted October 15, 2004 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 More sharing options...
Software FX Posted October 21, 2004 Report Share Posted October 21, 2004 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.