[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.SimpleFieldCollection

Class SimpleFieldCollection

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

Represents a collection of SimpleField objects.

public class SimpleFieldCollection : ContentObjectCollection<SimpleField>, IContentList<SimpleField>, IReadOnlyList<SimpleField>, IReadOnlyCollection<SimpleField>, IEnumerable<SimpleField>, IEnumerable
Inheritance
SimpleFieldCollection
Implements
Inherited Members

Methods

Add(IFieldOptions)

Adds a SimpleField to this collection at the End position.

public SimpleField Add(IFieldOptions options)

Parameters

options IFieldOptions

The field options.

Returns

SimpleField

The added SimpleField.

Add(string)

Adds a SimpleField to this collection at the End position.

public SimpleField Add(string code)

Parameters

code string

The field code.

Returns

SimpleField

The added SimpleField.

Add(string, string)

Adds a SimpleField to this collection at the End position.

public SimpleField Add(string code, string result)

Parameters

code string

The field code.

result string

The result text of the inserted field.

Returns

SimpleField

The added SimpleField.

Insert(IFieldOptions, InsertLocation)

Inserts a SimpleField into this collection at a specified location.

public SimpleField Insert(IFieldOptions options, InsertLocation location)

Parameters

options IFieldOptions

The field code.

location InsertLocation

The target InsertLocation for the insertion.

Returns

SimpleField

The inserted SimpleField.

Insert(string, InsertLocation)

Inserts a SimpleField into this collection at a specified location.

public SimpleField Insert(string code, InsertLocation location)

Parameters

code string

The field code.

location InsertLocation

The target InsertLocation for the insertion.

Returns

SimpleField

The inserted SimpleField.

Insert(string, string, InsertLocation)

Inserts a SimpleField into this collection at a specified location.

public SimpleField Insert(string code, string result, InsertLocation location)

Parameters

code string

The field code.

result string

The result text of the inserted field.

location InsertLocation

The target InsertLocation for the insertion.

Returns

SimpleField

The inserted SimpleField.