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.
Unfortunately, activation email could not send to your email. Please try again.

Check if a textnode it's outside of the diagram bounds.

Thread ID:

Created:

Updated:

Platform:

Replies:

104729 Aug 13,2012 08:18 AM Aug 16,2012 04:50 AM Windows Forms 3
loading
Tags: Diagram
Blanca Calderon
Asked On August 13, 2012 08:18 AM

Hi,

I want to check if a textnode it's outside of the diagram bounds. In that case I want to show an error message.

Could you help me? Thanks!

Blanca


Pandi Murugan A [Syncfusion]
Replied On August 14, 2012 08:25 AM

Hi Blanca,

 

Thanks for using Syncfusion products.

 

We suggest you to use the Model’s “CheckBoundaryConstrains(Node)” method for your requirement. Please refer the below code snippet.

 

<Code>

[C#]

//check whether the given node falls within the model bounds

bool flag = diagram1.Model.CheckBoundaryConstrains(node);

</Code>

 

Please let me know if any concerns.

 

Regards,

Pandi Murugan A


Blanca Calderon
Replied On August 16, 2012 02:49 AM

Thank you, It works great!


Pandi Murugan A [Syncfusion]
Replied On August 16, 2012 04:50 AM

Hi Blanca,

 

Thanks for the update. Please let me know if you have any other concerns.

 

Regards,

Pandi Murugan A

 

 


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.

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.

;