[]
Provides access to the content of a ContentControl.
public class ControlContent : ContentObject
Gets the parent content control.
public ContentControl Control { get; }
Adds a BidirectionalOverride to the end of the current control content.
public BidirectionalOverride AddBidirectionalOverride()
The added BidirectionalOverride.
Adds a BidirectionalOverride to the end of the current control content.
public BidirectionalOverride AddBidirectionalOverride(BiDirection direction)
direction
BiDirectionBidirectionalOverride direction value.
The added BidirectionalOverride.
Adds a ComplexField to the end of the current control content.
public ComplexField AddComplexField(string code, string result)
code
stringThe complex field code.
result
stringThe result text of the inserted field.
The added ComplexField.
Adds a ComplexField to the end of the current control content.
public ComplexField AddComplexField(string code)
code
stringThe complex field code.
The added ComplexField.
Adds a ContentControl to the end of the current control content.
public ContentControl AddContentControl(ContentControlType type, bool fillContent = true)
type
ContentControlTypeThe new content control type.
fillContent
boolIndicates whether to fill the new control content with default data.
The added ContentControl.
Adds an Endnote to the end of the current control content.
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 current control content.
public Endnote AddEndnote(string text, string reference)
text
stringThe endnote text.
reference
stringThe endnote reference text.
Adds an Endnote to the end of the current control content.
public Endnote AddEndnote(string text = null)
text
stringThe endnote text.
Adds a Footnote to the end of the current control content.
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 current control content.
public Footnote AddFootnote(string text, string reference)
text
stringThe footnote text.
reference
stringThe footnote reference text.
Adds a Footnote to the end of the current control content.
public Footnote AddFootnote(string text = null)
text
stringThe footnote text.
Adds a Hyperlink to the end of the current control content.
public Hyperlink AddHyperlink()
Adds a Hyperlink to the end of the current control content.
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 current control content.
public Hyperlink AddHyperlink(Uri address, string anchor, string text, string screenTip = null, string target = null)
address
System.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 current control content.
public OMath AddOMath()
Adds a OMath to the end of the current control content.
public OMath AddOMath(OMathBuiltInEquation equation)
equation
OMathBuiltInEquationThe built-in equation to fill the OMath.
Adds a OMathParagraph to the end of the current control content.
public OMathParagraph AddOMathParagraph()
The added OMathParagraph.
Adds a OMathParagraph to the end of the current control content.
public OMathParagraph AddOMathParagraph(OMathBuiltInEquation equation)
equation
OMathBuiltInEquationThe built-in equation to fill the OMathParagraph.
The added OMathParagraph.
Adds a Paragraph to the end of the current control content.
public Paragraph AddParagraph()
Adds a Paragraph to the end of the current control content.
public Paragraph AddParagraph(Style style)
style
StyleThe paragraph style.
Adds a Paragraph to the end of the current control content.
public Paragraph AddParagraph(string text, Style style)
text
stringThe text of the paragraph.
style
StyleThe paragraph style.
Adds a Paragraph to the end of the current control content.
public Paragraph AddParagraph(string text)
text
stringThe text of the paragraph.
Adds a Run to the end of the current control content.
public Run AddRun()
Adds a Run to the end of the current control content.
public Run AddRun(Style style)
style
StyleThe run character or linked paragraph style.
Adds a Run to the end of the current control content.
public Run AddRun(string text, Style style)
text
stringThe text of the run.
style
StyleThe run character or linked paragraph style.
Adds a Run to the end of the current control content.
public Run AddRun(string text)
text
stringThe text of the run.
Adds a SimpleField to the end of the current control content.
public SimpleField AddSimpleField(string code, string result)
code
stringThe field code.
result
stringThe result text of the field.
The added SimpleField.
Adds a SimpleField to the end of the current control content.
public SimpleField AddSimpleField(string code)
code
stringThe field code.
The added SimpleField.
Adds a Table to the end of the current control content.
public Table AddTable()
Adds a Table to the end of the current control content.
public Table AddTable(Style style)
style
StyleThe table style.
Adds a Table to the end of the current control content.
public Table AddTable(int columns, int rows, Style style)
columns
intThe number of columns in the new table.
rows
intThe number of rows in the new table.
style
StyleThe table style.
Adds a Table to the end of the current control content.
public Table AddTable(int columns, int rows)
columns
intThe number of columns in the new table.
rows
intThe number of rows in the new table.
Adds a Table to the end of the current control content.
public Table AddTable(string[][] texts, Style style)
texts
string[][]A two dimensional array of texts to put in the cells. The first dimension determines the number of rows, the second dimension determines the number of cells.
style
StyleThe table style.
Adds a Table to the end of the current control content.
public Table AddTable(string[][] texts)
texts
string[][]A two dimensional array of texts to put in the cells. The first dimension determines the number of rows, the second dimension determines the number of cells.