[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.SimpleFieldCollection.Insert

Insert Method

Insert(string, InsertLocation)

Inserts a SimpleField into this collection at a specified location.

Declaration
public SimpleField Insert(string code, InsertLocation location)
Parameters
Type Name Description
string code

The field code.

InsertLocation location

The target InsertLocation for the insertion.

Returns
Type Description
SimpleField

The inserted SimpleField.

Insert(string, string, InsertLocation)

Inserts a SimpleField into this collection at a specified location.

Declaration
public SimpleField Insert(string code, string result, InsertLocation location)
Parameters
Type Name Description
string code

The field code.

string result

The result text of the inserted field.

InsertLocation location

The target InsertLocation for the insertion.

Returns
Type Description
SimpleField

The inserted SimpleField.

Insert(IFieldOptions, InsertLocation)

Inserts a SimpleField into this collection at a specified location.

Declaration
public SimpleField Insert(IFieldOptions options, InsertLocation location)
Parameters
Type Name Description
IFieldOptions options

The field code.

InsertLocation location

The target InsertLocation for the insertion.

Returns
Type Description
SimpleField

The inserted SimpleField.