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

Free Support Forum - aspose.com

Applying formatting appearing in style pane? - not a style

Hi there,
The word has a way bu which the direct formatting related to the content of the document to appear in the style pane. Attaching the two images for the same.

These formatting depend upon the content and actually not a style but appears in the style pane. Does the Aspose has any API for getting these direct formatting from the word document?

Our goal is to extract all direct formatting from the one document and add them to other document like adding the styles. But we do not want to add the content on which these formatting based upon.

Attaching the word document which has these direct (not a style) formatting in style pane for you reference and added some information in the document, about how they got created.


Hi Praneeth,

Thanks for your inquiry. You can extract the direct formatting (Font formatting) using Run.Font property.

The formatting
applied to text in a Microsoft Word document can come from many
different sources. A useful thing to note about the Aspose.Words’ API is
that querying direct formatting (Run.Font, Paragraph.ParagraphFormat) will normally return the “calculated
formatting value based on all direct formatting, styles and document
defaults etc. Therefore, using the direct formatting properties are the
best way to find the visible formatting of the content.