Free Support Forum - aspose.com

ParagraphFormat is localized?

Hi,

when running a document through an IDocumentVisitor implementation, I have noticed that the name of the style is localized, even for the default ones like “Normal” or “Standard”. Is there a way to supply language independant information about the style used on a paragraph if it’s a default/standard style?

But maybe I need to find some other way determining the style of paragraphs to extract text from.

Regards

Kai

Hi Kai,
The built-in style names are defined for each language version of Word. So there is no language independent info.

Thanks. The names are localized, but internally the styles are identified by an id and there are predefined ids for builtin styles. I think we can expose the id so you can detect the style based on it.

Roman,

that’d be great. Thanks for your support

Regards

Kai

See ParagraphFormat.StyleIdentifier available in Aspose.Word 2.2.4.

Roman,

that’s great. Thanks a lot

Kai