Table of Contents

Interface IStyleComposer

Namespace
DocWright.Composition
Assembly
DocWright.Composition.dll

Defines a named style's formatting. The members map onto Word's character and paragraph properties; there is no parallel style system.

public interface IStyleComposer

Methods

AlignCenter()

Centres paragraphs in this style.

AlignLeft()

Left-aligns paragraphs in this style.

AlignRight()

Right-aligns paragraphs in this style.

BasedOn(string)

Sets the style this one inherits from.

Bold()

Makes the style bold.

FontColor(ColorRgb)

Sets the text colour.

FontFamily(string)

Sets the font family.

FontSize(double, Unit)

Sets the font size.

Italic()

Makes the style italic.

Justify()

Justifies paragraphs in this style.

KeepWithNext()

Keeps a paragraph in this style on the same page as the one that follows it.

OutlineLevel(int)

Sets the outline level, which is what makes a style a heading for navigation, tables of contents and chapter splitting.

SpacingAfter(double, Unit)

Sets the space below paragraphs in this style.

SpacingBefore(double, Unit)

Sets the space above paragraphs in this style.