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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:

Created:

Updated:

Platform:

Replies:

104729 Aug 13,2012 12:18 PM UTC Aug 16,2012 08:50 AM UTC WinForms 3
loading
Tags: Diagram
Blanca Calderon
Asked On August 13, 2012 12:18 PM UTC

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 12:25 PM UTC

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 06:49 AM UTC

Thank you, It works great!


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

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.

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

;