Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ExternalStylesFactory

Hierarchy

  • ExternalStylesFactory

Index

Methods

Methods

newInstance

  • newInstance(xmlData: string): Styles
  • Creates new Style based on the given styles. Parses the styles and convert them to XmlComponent. Example content from styles.xml: <?xml version="1.0"> <w:styles xmlns:mc="some schema" ...>

    <w:style w:type="paragraph" w:styleId="Heading1"> <w:name w:val="heading 1"/> .....

    <w:style w:type="paragraph" w:styleId="Heading2"> <w:name w:val="heading 2"/> .....

    <w:docDefaults>Or any other element will be parsed to

    Parameters

    • xmlData: string

    Returns Styles

Generated using TypeDoc