[]
        
(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)
Public Function Insert(code As String, location As InsertLocation) As SimpleField
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)
Public Function Insert(code As String, result As String, location As InsertLocation) As SimpleField
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)
Public Function Insert(options As IFieldOptions, location As InsertLocation) As SimpleField
Parameters
Type Name Description
IFieldOptions options

The field code.

InsertLocation location

The target InsertLocation for the insertion.

Returns
Type Description
SimpleField

The inserted SimpleField.