API Reference
Class
OdfStyleRepository
Indexes and creates named and automatic ODF styles without detaching them from package XML.
Inheritance
- Object
- OdfStyleRepository
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Property OdfDocument.Styles
- Property OdpPresentation.Styles
- Property OdsDocument.Styles
- Property OdtDocument.Styles
Methods
public OdfStyle CreateAutomatic(OdfStyleFamily family, String prefix = "of", String parentStyleName = null) #Returns:
OdfStyleCreates a collision-free automatic style in content.xml.
Parameters
- family OfficeIMO.OpenDocument.OdfStyleFamily
- prefix System.String = "of"
- parentStyleName System.String = null
public OdfStyle CreateNamed(String name, OdfStyleFamily family, String parentStyleName = null) #Returns:
OdfStyleCreates a common named style in styles.xml.
Parameters
- name System.String
- family OfficeIMO.OpenDocument.OdfStyleFamily
- parentStyleName System.String = null
public OdfStyle Find(OdfStyleFamily family, String name) #Returns:
OdfStyleFinds a style by family and name, preferring content automatic styles.
Parameters
- family OfficeIMO.OpenDocument.OdfStyleFamily
- name System.String
public IReadOnlyList<OdfStyle> Resolve(OdfStyle style) #Returns:
IReadOnlyList<OdfStyle>Resolves a style and its parent chain from most specific to least specific.
Parameters
- style OfficeIMO.OpenDocument.OdfStyle
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object