Class ParagraphFormat
Represents a ParagraphFormat.
Inherited Members
Namespace: DRIT.Document
Assembly: DRIT.Document.dll
Syntax
public class ParagraphFormat
Properties
Alignment
Gets alignment.
Declaration
public ParagraphAlignment Alignment { get; set; }
Property Value
| Type | Description |
|---|---|
| ParagraphAlignment |
BackgroundColorHex
Background shading fill colour hex (e.g. "FBE4D5"). Null means no shading.
Declaration
public string BackgroundColorHex { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Borders
Outside paragraph borders. Null means no borders.
Declaration
public ParagraphBorderSet Borders { get; set; }
Property Value
| Type | Description |
|---|---|
| ParagraphBorderSet |
FirstLineIndent
First-line indent in points. Positive = first-line indent, negative = hanging indent.
Declaration
public double FirstLineIndent { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
Frame
Gets or sets legacy Word frame formatting for the paragraph.
Declaration
public FrameFormat Frame { get; set; }
Property Value
| Type | Description |
|---|---|
| FrameFormat |
HangingPunctuation
Gets or sets hanging punctuation.
Declaration
public bool HangingPunctuation { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
LeftIndent
Left indent in points (excluding first-line/hanging).
Declaration
public double LeftIndent { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
LineSpacing
Gets or sets line spacing.
Declaration
public double LineSpacing { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
LineSpacingRule
Gets or sets line spacing rule.
Declaration
public LineSpacingRule LineSpacingRule { get; set; }
Property Value
| Type | Description |
|---|---|
| LineSpacingRule |
ListFormat
Gets or sets list format.
Declaration
public ListFormat ListFormat { get; set; }
Property Value
| Type | Description |
|---|---|
| ListFormat |
NoProofing
Gets or sets whether proofing is suppressed for the paragraph mark and its default run properties.
Declaration
public bool NoProofing { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
OutlineLevel
Outline level for the paragraph. Defaults to BodyText.
Maps to w:outlineLvl. Used for TOC generation and navigation.
Declaration
public OutlineLevel OutlineLevel { get; set; }
Property Value
| Type | Description |
|---|---|
| OutlineLevel |
RightIndent
Right indent in points.
Declaration
public double RightIndent { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
SpaceAfter
Gets or sets space after.
Declaration
public double SpaceAfter { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
SpaceAfterAuto
Gets or sets space after auto.
Declaration
public bool SpaceAfterAuto { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
SpaceBefore
Gets or sets space before.
Declaration
public double SpaceBefore { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
StyleName
Paragraph style name (e.g. "Title", "Heading1"). Null = no style applied.
Declaration
public string StyleName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
SuppressAutoHyphens
Gets or sets whether automatic hyphenation is suppressed for this paragraph.
Maps to w:suppressAutoHyphens in WordprocessingML.
Declaration
public bool SuppressAutoHyphens { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
TabStops
Custom tab stops for the paragraph. Never null; empty when no custom tabs are defined.
Declaration
public TabStopCollection TabStops { get; set; }
Property Value
| Type | Description |
|---|---|
| TabStopCollection |
WordWrap
Gets or sets word wrap.
Declaration
public bool WordWrap { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |