[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.ComplexFieldCollection.Insert

Insert Method

Insert(string, InsertLocation)

Inserts a ComplexField into this collection at the specified location.

Declaration
public ComplexField Insert(string code, InsertLocation location)
Public Function Insert(code As String, location As InsertLocation) As ComplexField
Parameters
Type Name Description
string code

The complex field code.

InsertLocation location

The target InsertLocation for the insertion.

Returns
Type Description
ComplexField

The inserted ComplexField.

Insert(string, string, InsertLocation)

Inserts a ComplexField into this collection at the specified location.

Declaration
public ComplexField Insert(string code, string result, InsertLocation location)
Public Function Insert(code As String, result As String, location As InsertLocation) As ComplexField
Parameters
Type Name Description
string code

The complex field code.

string result

The result text of the inserted field.

InsertLocation location

The target InsertLocation for the insertion.

Returns
Type Description
ComplexField

The inserted ComplexField.

Insert(IFieldOptions, InsertLocation)

Inserts a ComplexField into this collection at the specified location.

Declaration
public ComplexField Insert(IFieldOptions options, InsertLocation location)
Public Function Insert(options As IFieldOptions, location As InsertLocation) As ComplexField
Parameters
Type Name Description
IFieldOptions options

The complex field options.

InsertLocation location

The target InsertLocation for the insertion.

Returns
Type Description
ComplexField

The inserted ComplexField.

Insert(string, string, RangeLocation)

Inserts a ComplexField into this collection at the specified location.

Declaration
public ComplexField Insert(string code, string result, RangeLocation location)
Public Function Insert(code As String, result As String, location As RangeLocation) As ComplexField
Parameters
Type Name Description
string code

The complex field code.

string result

The result text of the inserted field.

RangeLocation location

The target RangeLocation for the insertion.

Returns
Type Description
ComplexField

The inserted ComplexField.