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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Region Select Color Change

Thread ID:

Created:

Updated:

Platform:

Replies:

101363 Oct 20,2011 08:22 AM UTC Oct 21,2011 10:26 AM UTC WinForms 1
loading
Tags: Diagram
Youngjin Kim
Asked On October 20, 2011 08:22 AM UTC

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.


Amsath Ali M [Syncfusion]
Replied On 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





CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;