StyleIdentifier - Headings - default values

Hi,

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
Aga

@acturisaspose,

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");
Console.WriteLine(doc.Styles[StyleIdentifier.Heading1].Font.Name);
Console.WriteLine(doc.Styles[StyleIdentifier.Heading1].Font.Size);