[]
Represents a simple field element in a body content.
public class SimpleField : ContentObject, IBrowsable<SimpleField>
Gets or sets the field code.
public string Code { get; set; }
Gets or sets custom field data that is associated with this field. This property can be used as desired to store additional application-defined data with the field.
public string CustomData { get; set; }
Gets or sets a value indicating whether this field has been flagged by an application to indicate that its current results are no longer correct (stale) due to other modifications made to the document, and these contents should be updated before they are displayed if this functionality is supported by the next processing application.
public bool IsDirty { get; set; }
Get or sets a value indicating whether this field shall not have its field result recalculated, even if an application attempts to recalculate the results of all fields in the document or a recalculation is explicitly requested.
public bool Locked { get; set; }
Gets the next simple field.
public SimpleField Next { get; }
Gets the previous simple field.
public SimpleField Previous { get; }
Adds a BidirectionalOverride to the end of the current simple field.
public BidirectionalOverride AddBidirectionalOverride()
The added BidirectionalOverride.
Adds a BidirectionalOverride to the end of the current simple field.
public BidirectionalOverride AddBidirectionalOverride(BiDirection direction)
direction
BiDirectionBidirectionalOverride direction value.
The added BidirectionalOverride.
Adds a ComplexField to the end of the current simple field.
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 simple field.
public ComplexField AddComplexField(string code)
code
stringThe complex field code.
The added ComplexField.
Adds a ContentControl to the end of the current simple field.
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 current simple field.
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 simple field.
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 simple field.
public Endnote AddEndnote(string text = null)
text
stringThe endnote text.
Adds a Footnote to the end of the current simple field.
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 simple field.
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 simple field.
public Footnote AddFootnote(string text = null)
text
stringThe footnote text.
Adds a Hyperlink to the end of the current simple field.
public Hyperlink AddHyperlink()
Adds a Hyperlink to the end of the current simple field.
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 simple field.
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 an OMath to the end of the current simple field.
public OMath AddOMath()
Adds an OMath to the end of the current simple field.
public OMath AddOMath(OMathBuiltInEquation equation)
equation
OMathBuiltInEquationThe built-in equation to fill the OMath.
Adds an OMathParagraph to the end of the current simple field.
public OMathParagraph AddOMathParagraph()
The added OMathParagraph.
Adds an OMathParagraph to the end of the current simple field.
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 current simple field.
public Run AddRun()
Adds a Run to the end of the current simple field.
public Run AddRun(Style style)
style
StyleThe run character or linked paragraph style.
Adds a Run to the end of the current simple field.
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 simple field.
public Run AddRun(string text)
text
stringThe text of the run.
Adds a SimpleField to the end of the current simple field.
public SimpleField AddSimpleField(string code, string result)
code
stringThe field code.
result
stringThe result text of the new field.
The added SimpleField.
Adds a SimpleField to the end of the current simple field.
public SimpleField AddSimpleField(string code)
code
stringThe field code.
The added SimpleField.