[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.SimpleField

Class SimpleField

Namespace
GrapeCity.Documents.Word
Assembly
GcDocs.Word.dll

Represents a simple field element in a body content.

public class SimpleField : ContentObject, IBrowsable<SimpleField>
Inheritance
SimpleField
Implements
Inherited Members

Properties

CanUpdate

public bool CanUpdate { get; }

Property Value

bool

Code

public string Code { get; set; }

Property Value

string

CustomData

public string CustomData { get; set; }

Property Value

string

IsDirty

public bool IsDirty { get; set; }

Property Value

bool

Locked

public bool Locked { get; set; }

Property Value

bool

Next

Gets the next simple field.

public SimpleField Next { get; }

Property Value

SimpleField

Previous

Gets the previous simple field.

public SimpleField Previous { get; }

Property Value

SimpleField

Methods

AddBidirectionalOverride()

Adds a BidirectionalOverride to the end of the current simple field.

public BidirectionalOverride AddBidirectionalOverride()

Returns

BidirectionalOverride

The added BidirectionalOverride.

AddBidirectionalOverride(BiDirection)

Adds a BidirectionalOverride to the end of the current simple field.

public BidirectionalOverride AddBidirectionalOverride(BiDirection direction)

Parameters

direction BiDirection

BidirectionalOverride direction value.

Returns

BidirectionalOverride

The added BidirectionalOverride.

AddComplexField(IFieldOptions)

Adds a ComplexField to the end of the current simple field.

public ComplexField AddComplexField(IFieldOptions options)

Parameters

options IFieldOptions

The complex field options.

Returns

ComplexField

The added ComplexField.

AddComplexField(string)

Adds a ComplexField to the end of the current simple field.

public ComplexField AddComplexField(string code)

Parameters

code string

The complex field code.

Returns

ComplexField

The added ComplexField.

AddComplexField(string, string)

Adds a ComplexField to the end of the current simple field.

public ComplexField AddComplexField(string code, string result)

Parameters

code string

The complex field code.

result string

The result text of the inserted field.

Returns

ComplexField

The added ComplexField.

AddContentControl(ContentControlType, bool)

Adds a ContentControl to the end of the current simple field.

public ContentControl AddContentControl(ContentControlType type, bool fillContent = true)

Parameters

type ContentControlType

The new content control type.

fillContent bool

Whether to fill the new control content with default data.

Returns

ContentControl

The added ContentControl.

AddEndnote(string)

Adds an Endnote to the end of the current simple field.

public Endnote AddEndnote(string text = null)

Parameters

text string

The endnote text.

Returns

Endnote

The added Endnote.

AddEndnote(string, char, string)

Adds an Endnote to the end of the current simple field.

public Endnote AddEndnote(string text, char referenceCharacter, string referenceFontName)

Parameters

text string

The endnote text.

referenceCharacter char

The endnote reference symbol.

referenceFontName string

The endnote reference symbol font.

Returns

Endnote

The added Endnote.

AddEndnote(string, string)

Adds an Endnote to the end of the current simple field.

public Endnote AddEndnote(string text, string reference)

Parameters

text string

The endnote text.

reference string

The endnote reference text.

Returns

Endnote

The added Endnote.

AddFootnote(string)

Adds a Footnote to the end of the current simple field.

public Footnote AddFootnote(string text = null)

Parameters

text string

The footnote text.

Returns

Footnote

The added Footnote.

AddFootnote(string, char, string)

Adds a Footnote to the end of the current simple field.

public Footnote AddFootnote(string text, char referenceCharacter, string referenceFontName)

Parameters

text string

The footnote text.

referenceCharacter char

The footnote reference symbol.

referenceFontName string

The footnote reference symbol font.

Returns

Footnote

The added Footnote.

AddFootnote(string, string)

Adds a Footnote to the end of the current simple field.

public Footnote AddFootnote(string text, string reference)

Parameters

text string

The footnote text.

reference string

The footnote reference text.

Returns

Footnote

The added Footnote.

Adds a Hyperlink to the end of the current simple field.

public Hyperlink AddHyperlink()

Returns

Hyperlink

The added Hyperlink.

Adds a Hyperlink to the end of the current simple field.

public Hyperlink AddHyperlink(string anchor, string text, string screenTip = null, string target = null)

Parameters

anchor string

The name of a bookmark in the current document which shall be the target of this hyperlink.

text string

The display text of the specified hyperlink.

screenTip string

The text that appears as a ScreenTip when the mouse pointer is positioned over the specified hyperlink.

target string

The name of the frame or window in which you want to load the specified hyperlink.

Returns

Hyperlink

The added 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)

Parameters

address Uri

The address for the specified link. The address can be an e-mail address, an Internet address, or a file name.

anchor string

The name of a bookmark in the current document which shall be the target of this hyperlink.

text string

The display text of the specified hyperlink.

screenTip string

The text that appears as a ScreenTip when the mouse pointer is positioned over the specified hyperlink.

target string

The name of the frame or window in which you want to load the specified hyperlink.

Returns

Hyperlink

The added Hyperlink.

AddOMath()

Adds an OMath to the end of the current simple field.

public OMath AddOMath()

Returns

OMath

The added OMath.

AddOMath(OMathBuiltInEquation)

Adds an OMath to the end of the current simple field.

public OMath AddOMath(OMathBuiltInEquation equation)

Parameters

equation OMathBuiltInEquation

The built-in equation to fill the OMath.

Returns

OMath

The added OMath.

AddOMathParagraph()

Adds an OMathParagraph to the end of the current simple field.

public OMathParagraph AddOMathParagraph()

Returns

OMathParagraph

The added OMathParagraph.

AddOMathParagraph(OMathBuiltInEquation)

Adds an OMathParagraph to the end of the current simple field.

public OMathParagraph AddOMathParagraph(OMathBuiltInEquation equation)

Parameters

equation OMathBuiltInEquation

The built-in equation to fill the OMathParagraph.

Returns

OMathParagraph

The added OMathParagraph.

AddRun()

Adds a Run to the end of the current simple field.

public Run AddRun()

Returns

Run

The added Run.

AddRun(Style)

Adds a Run to the end of the current simple field.

public Run AddRun(Style style)

Parameters

style Style

The run character or linked paragraph style.

Returns

Run

The added Run.

AddRun(string)

Adds a Run to the end of the current simple field.

public Run AddRun(string text)

Parameters

text string

The text of the run.

Returns

Run

The added Run.

AddRun(string, Style)

Adds a Run to the end of the current simple field.

public Run AddRun(string text, Style style)

Parameters

text string

The text of the run.

style Style

The run character or linked paragraph style.

Returns

Run

The added Run.

AddSimpleField(string)

Adds a SimpleField to the end of the current simple field.

public SimpleField AddSimpleField(string code)

Parameters

code string

The field code.

Returns

SimpleField

The added SimpleField.

AddSimpleField(string, string)

Adds a SimpleField to the end of the current simple field.

public SimpleField AddSimpleField(string code, string result)

Parameters

code string

The field code.

result string

The result text of the new field.

Returns

SimpleField

The added SimpleField.

ConvertToComplex()

Converts this simple field to a complex field.

public ComplexField ConvertToComplex()

Returns

ComplexField

The newly created ComplexField that corresponds to the current simple field.

Update(WordLayoutSettings)

public void Update(WordLayoutSettings layoutSettings = null)

Parameters

layoutSettings WordLayoutSettings