addStyles

inline fun <T : Enum<T>, BoundStyle> addStyles(doc: StyledDocument)

Apply the appropriate variant of every style enclosed by the specified enum to the specified StyledDocument.

Parameters

T

The enum of interest.

doc

The styled document.