[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.ParagraphFormat

ParagraphFormat Class

Represents all formatting for a paragraph.

Inheritance
ParagraphFormat
Namespace: GrapeCity.Documents.Word
Assembly: DS.Documents.Word.dll
Syntax
public class ParagraphFormat : FormattingBag
Public Class ParagraphFormat
    Inherits FormattingBag

Properties

Name Description
Alignment

Gets or sets the horizontal text alignment for the paragraph.

BaseLineAlignment

Gets or sets the vertical alignment of text within each line of the paragraph. If the line height (before any added spacing) exceeds the height of one or more characters, all characters on the line are aligned according to this setting.

Bidi

Gets or sets a value indicating whether the paragraph has right-to-left text direction.

Borders

Gets the collection of borders applied to the paragraph.

DisableLineHeightGrid

Gets or sets a value indicating whether the current paragraph should use the document grid lines per page settings defined in the document when laying out the contents in the paragraph. This setting determines whether the additional line pitch specified in the document grid shall be added to each line in this paragraph as specified by the document grid.

FarEastLineBreakControl

Gets or sets a value indicating whether East Asian typography and line-breaking rules are applied to determine which characters may begin or end lines in the paragraph. This setting applies only to Simplified Chinese, Traditional Chinese, and Japanese text.

HalfWidthPunctuationOnTopOfLine

Gets or sets a value indicating whether punctuation symbols at the beginning of a line should be converted to half-width characters in the paragraph.

HangingPunctuation

Gets or sets a value indicating whether text in the paragraph is allowed to extend one character beyond the indent or margin when the overflowing character is punctuation.

Hyphenation

Gets or sets a value indicating whether the paragraph should be excluded from automatic hyphenation defined in the document settings.

Indentation

Gets the indentation settings applied to the paragraph.

KeepTogether

Gets or sets a value indicating whether all lines in the paragraph must stay on the same page.

KeepWithNext

Gets or sets a value indicating whether the paragraph should stay on the same page as the paragraph that follows it.

NoLineNumber

Gets or sets a value indicating whether the lines in this paragraph should be excluded from line numbering applied by the parent section.

OutlineLevel

Gets or sets the outline level of the paragraph in the document.

PageBreakBefore

Gets or sets a value indicating whether a page break is forced before the paragraph.

Shading

Gets the Shading formatting applied to the paragraph.

Spacing

Gets the spacing settings applied to the paragraph.

SuppressAutoHyphens

Gets or sets a value indicating whether the paragraph should be excluded from automatic hyphenation defined in the document settings.

TabStops

Gets the collection of custom tab stops defined for the paragraph.

TextFlowDirection

Gets or sets the reading order of the paragraph without modifying its alignment.

TextboxTightWrap

Gets or sets how text wrapping behaves around a text box containing the paragraph. Specifies whether surrounding text is allowed to overlap the text box boundaries and wrap tightly to the actual text content inside the box.

WidowControl

Gets or sets a value indicating whether the first and last lines of the paragraph must remain on the same page as the rest of the paragraph (widow/orphan control).

WordWrap

Gets or sets a value indicating whether Latin text can wrap in the middle of a word within the paragraph.

Methods

Name Description
ClearFormatting()

Resets the paragraph formatting to default values.