Table of Contents

Class Paragraph

Namespace
FileFormat.Words.IElements
Assembly
FileFormat.Words.dll

Represents a paragraph element in a Word document.

public class Paragraph : IElement
Inheritance
Paragraph
Implements
Inherited Members

Constructors

Paragraph()

Initializes a new instance of the Paragraph class.

public Paragraph()

Properties

Alignment

Gets or Sets Alignment of the word paragraph

public ParagraphAlignment Alignment { get; set; }

Property Value

ParagraphAlignment

ElementId

Gets the unique identifier of the paragraph.

public int ElementId { get; }

Property Value

int

Indentation

Gets or Sets Indentation of the word paragraph

public Indentation Indentation { get; set; }

Property Value

Indentation

IsAlphabeticNumber

Gets or sets whether the paragraph has alphabetic number bullets.

public bool IsAlphabeticNumber { get; set; }

Property Value

bool

IsBullet

Gets or sets whether the paragraph has bullet points.

public bool IsBullet { get; set; }

Property Value

bool

IsNumbered

Gets or sets whether the paragraph has numbered bullets.

public bool IsNumbered { get; set; }

Property Value

bool

IsRoman

Gets or sets whether the paragraph has roman number bullets.

public bool IsRoman { get; set; }

Property Value

bool

NumberingId

Gets or sets the numbering ID for the paragraph.

public int? NumberingId { get; set; }

Property Value

int?

NumberingLevel

Gets or sets the numbering level for the paragraph.

public int? NumberingLevel { get; set; }

Property Value

int?

Runs

Gets the list of runs (text fragments) within the paragraph.

public List<Run> Runs { get; }

Property Value

List<Run>

Style

Gets or sets the style of the paragraph.

public string Style { get; set; }

Property Value

string

Text

Gets or sets the text content of the paragraph.

public string Text { get; }

Property Value

string

Methods

AddRun(Run)

Adds a run (text fragment) to the paragraph and sets its parent paragraph.

public void AddRun(Run run)

Parameters

run Run

The run to add to the paragraph.