[]
Represents a simple field element in a body content.
public class SimpleField : ContentObject, IBrowsable<SimpleField>
public bool CanUpdate { get; }
public string Code { get; set; }
public string CustomData { get; set; }
public bool IsDirty { get; set; }
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(IFieldOptions options)
options
IFieldOptionsThe complex field options.
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 ComplexField to the end of the current simple field.
public ComplexField AddComplexField(string code, string result)
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 = null)
text
stringThe endnote text.
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)
Adds a Footnote to the end of the current simple field.
public Footnote AddFootnote(string text = null)
text
stringThe footnote 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)
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
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)
text
stringThe text of the run.
Adds a Run to the end of the current simple field.
public Run AddRun(string text, Style style)
Adds a SimpleField to the end of the current simple field.
public SimpleField AddSimpleField(string code)
code
stringThe field code.
The added SimpleField.
Adds a SimpleField to the end of the current simple field.
public SimpleField AddSimpleField(string code, string result)
The added SimpleField.
Converts this simple field to a complex field.
public ComplexField ConvertToComplex()
The newly created ComplexField that corresponds to the current simple field.
public void Update(WordLayoutSettings layoutSettings = null)
layoutSettings
WordLayoutSettings