We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Region Select Color Change

Hi...

If I change the background color of diagram to black, I can't see the rectangle surrounding the selected region by dragging mouse.
I can't figure out which property is related this drawing color.

Thanks in advance.


1 Reply

AA Amsath Ali M Syncfusion Team October 21, 2011 10:26 AM UTC

Hi Youngjin,

Thanks for using Syncfusion products.

We suggest you to use the SelectTool.TrackingStyle’s ‘LineColor’ property to change the line color of the region selected while dragging through mouse. Please refer the below code snippet to achieve your requirement.

Here is the code snippet:
[C#]
void diagram1_MouseDown(object sender, MouseEventArgs e)
{
if (diagram1.Controller.ActiveTool.Name == "SelectTool")
{
((SelectTool)diagram1.Controller.ActiveTool).TrackingStyle.LineColor = Color.Red;
}
}

Here is the sample:
Forum SelectToolColor Change-1891792784.zip

Please try the above sample and let us know if you have any queries.

Regards,
Amsath Ali. M





Loader.
Live Chat Icon For mobile
Up arrow icon