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

Free Support Forum - aspose.com

Range.Case property used in VBA


In one of the templates I’m converting from VBA to Aspose.Word/VB.Net, I had the following code line:
Selection.Range.Case = wdTitleWord

Is it possible to do such thing using Aspose? (I mean the Range.Case property)

Hi Saleem,

Thanks for your inquiry.

Please note that Aspose.Words is quite different from the
Microsoft Word’s Object Model in that it represents the document as a tree of objects
more like an XML DOM tree. If you worked with any XML DOM library you
will find it is easy to understand and work with Aspose.Words. When you
load a Word document into Aspose.Words, it builds its DOM and all
document elements and formatting are simply loaded into memory. Please read the following articles for more information on DOM:

All text of the document is stored in runs of text. Please use the Run.Text property to set the text of Run node according to your requirement. If you face any issue, please share your input and expected output document here for our reference. We will then provide you more information about your query along with code.

Moreover, please read following documentation link for your kind reference.