Click or drag to resize

StyleCollection Class

Represents a collection of styles.
Inheritance Hierarchy
SystemObject
  SautinSoft.DocumentStyleCollection

Namespace: SautinSoft.Document
Assembly: SautinSoft.Document (in SautinSoft.Document.dll) Version: 2024.11.20
Syntax
public sealed class StyleCollection : IEnumerable<Style>, 
	IEnumerable

The StyleCollection type exposes the following members.

Properties
 NameDescription
Public propertyCount Gets the number of styles contained in the StyleCollection.
Public propertyItemInt32 Gets the style at the specified index.
Public propertyItemString Gets the style with the specified style name.
Top
Methods
 NameDescription
Public methodAdd Adds a Style instance to the StyleCollection.
Public methodContains(String) Determines whether the StyleCollection contains a Style instance with specific name.
Public methodContains(Style) Determines whether the StyleCollection contains a specific Style instance.
Public methodGetEnumerator Returns an enumerator that iterates through the StyleCollection.
Public methodGetOrAdd Gets the Style that corresponds to given StyleTemplateType.
Public methodCode exampleImport(Style) Imports (clones) the specified source style and adds into this StyleCollection.
Public methodCode exampleImport(Style, ImportSession) Imports (clones) the specified source style and adds into this StyleCollection.
Public methodIndexOf Determines the index of a specific Style instance in the StyleCollection.
Top
See Also