Page 1 of 1

back color of label displayed by markstip tool

Posted: Mon Mar 06, 2006 12:14 pm
by 9788742
Is there anyway to change the back color and text color of the label displayed by MarksTip tool?

Posted: Tue Mar 07, 2006 12:51 pm
by narcis
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;

Border color for the annotation tool

Posted: Wed Mar 08, 2006 6:09 am
by 9788742
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?

Posted: Wed Mar 08, 2006 9:00 am
by narcis
Hi Lakshmi,

You're welcome.

To set the border color you need to use:

Code: Select all

annotation1.Shape.Pen.Color=Color.Red;