Class StyleCollection
The document's style definitions (the styles part), with ordinal lookup by style id and per-type defaults. Definition order is preserved for round-trip.
public sealed class StyleCollection : UnknownXmlHost
- Inheritance
-
StyleCollection
- Inherited Members
Constructors
Properties
- Count
Gets the number of styles.
- DocDefaults
Gets or sets the document-wide defaults. Never null.
- Styles
Gets the styles in definition order.
Methods
- Add(Style)
Adds a style definition.
- Clone()
Creates a deep copy of the whole collection.
- Find(string?)
Looks up a style by id.
- FindDefault(StyleType)
Returns the default style of the given type (w:default="1"), or null.