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

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

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


3 Replies

PM Pandi Murugan A Syncfusion Team 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



BC Blanca Calderon August 16, 2012 06:49 AM UTC

Thank you, It works great!



PM Pandi Murugan A Syncfusion Team 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

 

 


Loader.
Live Chat Icon For mobile
Up arrow icon