findStyle

fnconst(StyleDefinition) * findStyle(const ref OdfStyles styles, string name, bool automatic = false)

Looks up a named style in styles or automaticStyles.

Parameters

stylesThe style container to search.
nameThe style:name to find.
automaticWhen true, search automaticStyles; otherwise search styles.

Returns

A pointer to the matching StyleDefinition, or null.