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
ElementId
Gets the unique identifier of the paragraph.
public int ElementId { get; }
Property Value
Indentation
Gets or Sets Indentation of the word paragraph
public Indentation Indentation { get; set; }
Property Value
IsAlphabeticNumber
Gets or sets whether the paragraph has alphabetic number bullets.
public bool IsAlphabeticNumber { get; set; }
Property Value
IsBullet
Gets or sets whether the paragraph has bullet points.
public bool IsBullet { get; set; }
Property Value
IsNumbered
Gets or sets whether the paragraph has numbered bullets.
public bool IsNumbered { get; set; }
Property Value
IsRoman
Gets or sets whether the paragraph has roman number bullets.
public bool IsRoman { get; set; }
Property Value
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
Style
Gets or sets the style of the paragraph.
public string Style { get; set; }
Property Value
Text
Gets or sets the text content of the paragraph.
public string Text { get; }
Property Value
Methods
AddRun(Run)
Adds a run (text fragment) to the paragraph and sets its parent paragraph.
public void AddRun(Run run)
Parameters
run
RunThe run to add to the paragraph.