Free Support Forum - aspose.com

Howto add arange

Hi

How do i add range into a word document? Your documentation is quite clear on how to manipulate a range, but for someone who doesnt use Word, its hard to know how to insert a range.

p.s. i find not being able to hit return key in your search boxes frustrating.

Range in Aspose.Words is not like it is in MS Word. It is merely a facade object, implementing several helper methods to aid in search-and-replace operations. Range always spans a particular node. It cannot cover arbitrary portion of document.

When want to insert content to document it always comes to insertion of some particular node to parent node ChildNodes collection. I.e. document is treated as a tree of various objects.