Click or drag to resize
StyleCollectionGetOrAdd Method
Gets the Style that corresponds to given StyleTemplateType.

Namespace:  GemBox.Document
Assembly:  GemBox.Document (in GemBox.Document.dll) Version: 25.3.30.1243
Syntax
public Style GetOrAdd(
	StyleTemplateType templateType
)

Parameters

templateType
Type: GemBox.DocumentStyleTemplateType
The StyleTemplateType instance.

Return Value

Type: Style
Style that corresponds to given StyleTemplateType.
Remarks
Gets the Style that corresponds to given StyleTemplateType. If StyleCollection doesn't contain correspondent style, then new style will be added and returned.
See Also