[]
Represents a paragraph element in a body content.
public class Paragraph : FormattedContentObject, IBrowsable<Paragraph>
Provides access to the paragraph formatting properties.
public ParagraphFormat Format { get; }
Gets the list formatting specified for the paragraph.
public ListFormat ListFormat { get; }
Gets the set of properties applied to the glyph used to represent the physical location of the paragraph mark for this paragraph. This paragraph mark, being a physical character in the document, can be formatted, and therefore shall be capable of representing this formatting like any other character in the document.
public ParagraphMark Mark { get; }
Gets the next paragraph.
public Paragraph Next { get; }
Gets the previous paragraph.
public Paragraph Previous { get; }
Gets unique identifiers used to track the paragraph editing session.
public ParagraphRevisionId RevisionId { get; }
Gets or sets paragraph style that shall be used to format the contents of this paragraph.
public Style Style { get; set; }
Adds a BidirectionalOverride to the end of the paragraph.
public BidirectionalOverride AddBidirectionalOverride()
The added BidirectionalOverride.
Adds a BidirectionalOverride to the end of the paragraph.
public BidirectionalOverride AddBidirectionalOverride(BiDirection direction)
direction BiDirectionBidirectionalOverride direction value.
The added BidirectionalOverride.
Adds a ComplexField to the end of the paragraph.
public ComplexField AddComplexField(IFieldOptions options)
options IFieldOptionsThe complex field options.
The added ComplexField.
Adds a ComplexField to the end of the paragraph.
public ComplexField AddComplexField(string code)
code stringThe complex field code.
The added ComplexField.
Adds a ComplexField to the end of the paragraph.
public ComplexField AddComplexField(string code, string result)
The added ComplexField.
Adds a ContentControl to the end of the paragraph.
public ContentControl AddContentControl(ContentControlType type, bool fillContent = true)
type ContentControlTypeThe new content control type.
fillContent boolWhether to fill the new control content with default data.
The added ContentControl.
Adds an Endnote to the end of the paragraph.
public Endnote AddEndnote(string text = null)
text stringThe endnote text.
Adds an Endnote to the end of the paragraph.
public Endnote AddEndnote(string text, char referenceCharacter, string referenceFontName)
text stringThe endnote text.
referenceCharacter charThe endnote reference symbol.
referenceFontName stringThe endnote reference symbol font.
Adds an Endnote to the end of the paragraph.
public Endnote AddEndnote(string text, string reference)
Adds a Footnote to the end of the paragraph.
public Footnote AddFootnote(string text = null)
text stringThe footnote text.
Adds a Footnote to the end of the paragraph.
public Footnote AddFootnote(string text, char referenceCharacter, string referenceFontName)
text stringThe footnote text.
referenceCharacter charThe footnote reference symbol.
referenceFontName stringThe footnote reference symbol font.
Adds a Footnote to the end of the paragraph.
public Footnote AddFootnote(string text, string reference)
Adds a Hyperlink to the end of the paragraph.
public Hyperlink AddHyperlink()
Adds a Hyperlink to the end of the paragraph.
public Hyperlink AddHyperlink(string anchor, string text, string screenTip = null, string target = null)
anchor stringThe name of a bookmark in the current document which shall be the target of this hyperlink.
text stringThe display text of the specified hyperlink.
screenTip stringThe text that appears as a ScreenTip when the mouse pointer is positioned over the specified hyperlink.
target stringThe name of the frame or window in which you want to load the specified hyperlink.
Adds a Hyperlink to the end of the paragraph.
public Hyperlink AddHyperlink(Uri address, string anchor, string text, string screenTip = null, string target = null)
address UriThe address for the specified link. The address can be an e-mail address, an Internet address, or a file name.
anchor stringThe name of a bookmark in the current document which shall be the target of this hyperlink.
text stringThe display text of the specified hyperlink.
screenTip stringThe text that appears as a ScreenTip when the mouse pointer is positioned over the specified hyperlink.
target stringThe name of the frame or window in which you want to load the specified hyperlink.
Adds a OMath to the end of the paragraph.
public OMath AddOMath()
Adds a OMath to the end of the paragraph.
public OMath AddOMath(OMathBuiltInEquation equation)
equation OMathBuiltInEquationThe built-in equation to fill the OMath.
Adds a OMathParagraph to the end of the paragraph.
public OMathParagraph AddOMathParagraph()
The added OMathParagraph.
Adds a OMathParagraph to the end of the paragraph.
public OMathParagraph AddOMathParagraph(OMathBuiltInEquation equation)
equation OMathBuiltInEquationThe built-in equation to fill the OMathParagraph.
The added OMathParagraph.
Adds a Run to the end of the paragraph.
public Run AddRun()
Adds a Run to the end of the paragraph.
public Run AddRun(Style style)
style StyleThe run character or linked paragraph style.
Adds a Run to the end of the paragraph.
public Run AddRun(string text)
Adds a Run to the end of the paragraph.
public Run AddRun(string text, Style style)
Breaks the parent section right after this paragraph.
public Section AddSectionBreak(SectionStart sectionStart = SectionStart.NewPage)
sectionStart SectionStartThe SectionStart for the new section.
Adds a SimpleField to the end of the paragraph.
public SimpleField AddSimpleField(string code)
code stringThe field code.
The added SimpleField.
Adds a SimpleField to the end of the paragraph.
public SimpleField AddSimpleField(string code, string result)
The added SimpleField.
Restarts the list numbering on the current Paragraph.
The current paragraph must belong to a numbered list.
IfstartNumberingValue is omitted or null,
numbering on the current list is restarted
at the value of StartAt on the current level of the list template,
otherwise a new list is created.
public void RestartList(int? startNumberingValue = null)
startNumberingValue int?Optional: the numbering start value.
Splits the paragraph at a specified location relative to a specified child content.
public Paragraph Split(ContentObject child, InsertLocation location)
child ContentObjectThe child content where to split.
location InsertLocationThe position relative to child where to split.
The second part of the split paragraph content.