[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.ParagraphFormat

Class ParagraphFormat

Namespace
GrapeCity.Documents.Word
Assembly
GcDocs.Word.dll

Represents all formatting for a paragraph.

public class ParagraphFormat : FormattingBag
Inheritance
object
ParagraphFormat
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Properties

Alignment

Gets or sets text alignment for the paragraph.

public ParagraphAlignment Alignment { get; set; }

Property Value

ParagraphAlignment

BaseLineAlignment

Gets or sets the vertical alignment of all text on each line displayed within a paragraph. If the line height (before any added spacing) is larger than one or more characters on the line, all characters are aligned to each other as specified by this property.

public BaseLineAlignment BaseLineAlignment { get; set; }

Property Value

BaseLineAlignment

Bidi

Gets or sets whether this is a right-to-left paragraph.

public bool Bidi { get; set; }

Property Value

bool

Borders

Gets border collection of the paragraph.

public ParagraphBorderCollection Borders { get; }

Property Value

ParagraphBorderCollection

DisableLineHeightGrid

Gets or sets 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.

public bool DisableLineHeightGrid { get; set; }

Property Value

bool

FarEastLineBreakControl

Gets or sets whether East Asian typography and line-breaking rules shall be applied to text in this paragraph to determine which characters can begin and end each line. This property only applies to Simplified Chinese, Traditional Chinese, and Japanese text in this paragraph.

public bool FarEastLineBreakControl { get; set; }

Property Value

bool

HalfWidthPunctuationOnTopOfLine

Gets or sets whether to change punctuation symbols at the beginning of a line to half-width characters for the paragraphs

public bool HalfWidthPunctuationOnTopOfLine { get; set; }

Property Value

bool

HangingPunctuation

Gets or sets whether the text in this paragraph shall be allowed to extend one character beyond the extents applied by any indents/margins when the character that extends past those extents is a punctuation character.

public bool HangingPunctuation { get; set; }

Property Value

bool

Hyphenation

Gets or sets whether the current paragraph should be exempted from any hyphenation that is applied in the document settings.

public bool Hyphenation { get; set; }

Property Value

bool

Indentation

Gets the set of indentation properties applied to the current paragraph.

public Indentation Indentation { get; }

Property Value

Indentation

KeepTogether

True if all lines in the paragraph are to remain on the same page.

public bool KeepTogether { get; set; }

Property Value

bool

KeepWithNext

True if the paragraph is to remains on the same page as the paragraph that follows it.

public bool KeepWithNext { get; set; }

Property Value

bool

NoLineNumber

Gets or sets whether the current paragraph's lines should be exempted from line numbering that is applied in the parent section.

public bool NoLineNumber { get; set; }

Property Value

bool

OutlineLevel

Specifies the outline level of the paragraph in the document.

public OutlineLevel OutlineLevel { get; set; }

Property Value

OutlineLevel

PageBreakBefore

True if a page break is forced before the paragraph.

public bool PageBreakBefore { get; set; }

Property Value

bool

Shading

Returns a Shading object that refers to the shading formatting for the paragraph.

public Shading Shading { get; }

Property Value

Shading

Spacing

Gets the set of spacing properties applied to the current paragraph.

public Spacing Spacing { get; }

Property Value

Spacing

TabStops

Gets the collection of custom tab stops defined for this object.

public TabStopCollection TabStops { get; }

Property Value

TabStopCollection

TextboxTightWrap

Gets or sets whether, for paragraphs in a text box, the surrounding text shall be allowed to overlap with the empty text box boundaries and tight wrap to the extents of the text within the text box.

public TextboxTightWrap TextboxTightWrap { get; set; }

Property Value

TextboxTightWrap

Remarks

This property has only effect for paragraphs that are contained within a text box, ignored otherwise.

TextFlowDirection

Gets or sets the reading order of the specified paragraphs without changing their alignment.

public TextFlowDirection TextFlowDirection { get; set; }

Property Value

TextFlowDirection

WidowControl

True if the first and last lines in the paragraph are to remain on the same page as the rest of the paragraph.

public bool WidowControl { get; set; }

Property Value

bool

WordWrap

Gets or sets whether to wrap Latin text in the middle of a word in the paragraph.

public bool WordWrap { get; set; }

Property Value

bool

Methods

ClearFormatting()

Resets to default paragraph formatting.

public override void ClearFormatting()

Remarks

Default paragraph formatting is Normal style, left aligned, no indentation, no spacing, no borders and no shading.