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

Free Support Forum - aspose.com

StyleIdentifier - Headings - default values


Could you please let me know what are default values for headings (geading1, 2, 3etc) in Aspose ? ie. if i don’t declare heading1 style but will use it in the newly created document - what will be font size, family etc set too?
also - does it match those in newly created empty word document?



Thanks for your inquiry. Please use the following code example to get the font size and name of heading style. The font value depends on template document. You can change font’s properties according to your requirement using Font class.

Document doc = new Document(MyDir + "in.docx");