VDocs.NET
Back to DOM

DOM.Styles.ParagraphStyle

Namespace: DOM.Styles

Represents paragraph-level formatting and layout settings.

aggregates indentation, spacing, shading, border and many paragraph-specific behaviours (pagination, line-wrapping, punctuation handling, etc.). Most properties are nullable so callers can distinguish "not specified" from explicit values and allow style inheritance or document defaults to be applied by the consumer.

27 members

Properties

AutoSpaceDE

Gets or sets whether automatic spacing between CJK (East Asian) and Latin characters is applied before the paragraph.

AutoSpaceDN

Gets or sets whether automatic spacing between CJK and Latin characters is applied after the paragraph.

ConditionalFormatStyle

Gets or sets conditional formatting flags for table-cell style application when paragraphs are used inside tables.

ContextualSpacing

Gets or sets whether contextual spacing (language-specific spacing rules) is enabled.

Gets or sets indentation settings for the paragraph.

Justification

Gets or sets horizontal justification for paragraph text (left, center, right, distribute, etc.).

keepLinesOnPage

Gets or sets whether the paragraph should keep all lines together on the same page.

When, pagination logic should avoid breaking the paragraph across pages.

keepWithNextParagraph

Gets or sets whether the paragraph should be kept on the same page as the following paragraph.

kinsoku

Gets or sets whether Kinsoku (Japanese line-breaking rules) adjustments should be applied.

OutlineLevelOutlineLevelValues

Gets or sets the outline (heading) level for this paragraph.

OverflowPunctuation

Gets or sets whether overflow punctuation should be allowed to hang outside the text margin to improve optical alignment.

ParagraphBorders

Gets or sets border settings applied around the paragraph block.

RightToLeft

Gets or sets whether the paragraph direction is right-to-left.

Shading

Gets or sets shading (background fill) applied to the paragraph area.

SnapToGrid

Gets or sets whether the paragraph's lines should snap to the document grid (if present).

SpacingBetweenLinesSpacing

Gets or sets line spacing and related vertical spacing settings.

StartOnNextPage

Gets or sets whether the paragraph should start on the next page.

SuppressAutoHyphens

Gets or sets whether automatic hyphenation should be suppressed for this paragraph.

SuppressLineNumbers

Gets or sets whether line numbers are suppressed for this paragraph.

SuppressOverlap

Gets or sets whether overlapping of adjacent elements should be suppressed.

TabsTab

Gets or sets the tab stops for the paragraph.

TextAlignment

Gets or sets vertical text alignment values for the paragraph (for example baseline/center).

TextBoxTightWrap

Gets or sets the tight-wrap behaviour used when the paragraph is inside a text box.

TextDirection

Gets or sets the text flow direction for the paragraph (e.g., left-to-right, top-to-bottom).

TopLinePunctuation

Gets or sets whether punctuation at the top of a column/page should be adjusted per typographic rules.

WidowControl

Gets or sets whether widow/orphan control is enabled for the paragraph.

When enabled, layout should avoid leaving a single line at the top or bottom of a page.

WordWrap

Gets or sets whether word wrapping is enabled for this paragraph.

VDocs.NET
The .NET Word Document Library

Generate Word
documents.
Not XML.

Create professional documents in .NET without the complexity of OpenXML or Word Interop.

C#VB.NET
var doc = new WordDocument();

doc.AddParagraph()
   .AddText("Invoice")
   .SetHeading(HeadingLevel.Title);

doc.Save("invoice.docx");

Create Account

Create your VDocs account.

or

Already have an account? Sign in