back color of label displayed by markstip tool

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Lakshmi
Newbie
Newbie
Posts: 40
Joined: Fri Oct 07, 2005 4:00 am
Location: India
Contact:

back color of label displayed by markstip tool

Post by Lakshmi » Mon Mar 06, 2006 12:14 pm

Is there anyway to change the back color and text color of the label displayed by MarksTip tool?

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Mar 07, 2006 12:51 pm

Hi Lakshmi,

You can achieve that using annotation tool as I told you in your other post. The specific code for doing that is:

Code: Select all

			annotation1.Shape.Color=Color.Blue;
			annotation1.Shape.Font.Color=Color.Yellow;
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Lakshmi
Newbie
Newbie
Posts: 40
Joined: Fri Oct 07, 2005 4:00 am
Location: India
Contact:

Border color for the annotation tool

Post by Lakshmi » Wed Mar 08, 2006 6:09 am

Thanks Narcis for suggesting the annotation tool.

By default the annotation tool has a back ground color of white and text color as black and border around the text shape appears black.

Now using the below code as suggested by you, if make the back color as black and text color as white it works, but I am unable to see the border around the annotation.
How do I set the border color?

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed Mar 08, 2006 9:00 am

Hi Lakshmi,

You're welcome.

To set the border color you need to use:

Code: Select all

annotation1.Shape.Pen.Color=Color.Red;
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply