Profile Picture

How do I change the border colour of a data label or turn off the border?

Posted By Kevin Harrison 9 Years Ago

How do I change the border colour of a data label or turn off the...

Author
Message
Kevin Harrison
Question Posted 9 Years Ago
View Quick Profile
Supreme Being

Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)

Group: Forum Members
Last Active: 3 Years Ago
Posts: 176, Visits: 1,865

This is using 14.8.12.12
 I cannot get the data label border to change using DataLabelStyle.TextStyle.BorderStyle.Color,
or turn it off using DataLabelStyle.TextStyle.BorderStyle.Width = 0.
I have also tried using TextStyle.BackplaneStyle but it has no BorderStyle, only a FillStyle.
I always get a black border no matter what.
What am I doing wrong?
Thanks
Kevin



 



Nevron Support
Posted 9 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: 2 Weeks Ago
Posts: 3,054, Visits: 4,015
Hi Kevin,

The following code shows how disable the border around the data labels:

bar.DataLabelStyle.TextStyle.BackplaneStyle.StandardFrameStyle.Visible = false;
bar.DataLabelStyle.TextStyle.BackplaneStyle.FillStyle = new NColorFillStyle(Color.Cyan);

Hope this helps - let us know if you meet any problems.

Best Regards,
Nevron Support Team



Kevin Harrison
Posted 9 Years Ago
View Quick Profile
Supreme Being

Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)

Group: Forum Members
Last Active: 3 Years Ago
Posts: 176, Visits: 1,865
Thanks - the first one removes the border.
Now, how do I change the border colour? Neither StandardFrameStyle.InnerBorderColor or StandardFrameStyle.OuterBorderColor seem to work?
Regards
Kevin

Nevron Support
Posted 9 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: 2 Weeks Ago
Posts: 3,054, Visits: 4,015
Hi Kevin,

The InnerBorderColor changes the color of the frame:

bar.DataLabelStyle.TextStyle.BackplaneStyle.StandardFrameStyle.InnerBorderColor = Color.Blue;

You can also take a look at the following topic in the documentation:
http://helpdotnetvision.nevron.com/Presentation_Graphics_AppearanceStyles_FrameStyles_Standard_Frame_Style.html

Let us know if you meet any problems.


Best Regards,
Nevron Support Team



Kevin Harrison
Posted 9 Years Ago
View Quick Profile
Supreme Being

Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)

Group: Forum Members
Last Active: 3 Years Ago
Posts: 176, Visits: 1,865
Thanks, I don't know why I hadn't tried that, or thought it didn't work.
I don't think the diagram at the top of the link you sent me is labelled correctly though?



Similar Topics


Reading This Topic