We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Select Copy all Objects Nodes inside a Particular Position Rectangular Area on a Page in Word Document using C# .NET

Hi Team,

I am able to get the exact position of an object using LayoutCollector.GetEntity() method in a page.
For my case i need to find the reverse of this. i.e given a coordinates (for example , x=40, y= 50, width = 300 and height = 400) I need to identify all the objects which lies inside this region. Is there any API available for this in aspose? or do i just need to iterate over all the objects in this page and check their coordinates fell in the given boundry?


I am afraid, there is no built-in API to meet this requirement. But yes, you can iterate over all the objects/nodes in Word document and check if their coordinates fall in the given boundary. Please check the classes/methods of Aspose.Words.Layout Namespace.

1 Like