Click or drag to resize
StyleCollection Class
Represents a collection of Styles.
Inheritance Hierarchy
SystemObject
  GemBox.DocumentStyleCollection

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

The StyleCollection type exposes the following members.

Properties
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 methodIndexOf
Determines the index of a specific Style instance in the StyleCollection.
Top
Explicit Interface Implementations
  NameDescription
Explicit interface implementationPrivate methodIEnumerableGetEnumerator
Returns an enumerator that iterates through a collection.
Top
Remarks
Used as a container for a DocumentModel.Styles property.
See Also