Word.Interfaces.FieldCollectionLoadOptions interface
Contains a collection of Word.Field objects.
Remarks
Properties
$all | Specifying |
code | For EACH ITEM in the collection: Specifies the field's code instruction. |
parent |
For EACH ITEM in the collection: Gets the parent body of the field. |
parent |
For EACH ITEM in the collection: Gets the content control that contains the field. Throws an |
parent |
For EACH ITEM in the collection: Gets the content control that contains the field. If there isn't a parent content control, then this method will return an object with its |
parent |
For EACH ITEM in the collection: Gets the table that contains the field. Throws an |
parent |
For EACH ITEM in the collection: Gets the table cell that contains the field. Throws an |
parent |
For EACH ITEM in the collection: Gets the table cell that contains the field. If it isn't contained in a table cell, then this method will return an object with its |
parent |
For EACH ITEM in the collection: Gets the table that contains the field. If it isn't contained in a table, then this method will return an object with its |
result | For EACH ITEM in the collection: Gets the field's result data. |
Property Details
$all
Specifying $all
for the load options loads all the scalar properties (such as Range.address
) but not the navigational properties (such as Range.format.fill.color
).
$all?: boolean;
Property Value
boolean
code
For EACH ITEM in the collection: Specifies the field's code instruction.
code?: boolean;
Property Value
boolean
Remarks
Note: The ability to set the code was introduced in WordApi 1.5.
parentBody
For EACH ITEM in the collection: Gets the parent body of the field.
parentBody?: Word.Interfaces.BodyLoadOptions;
Property Value
Remarks
parentContentControl
For EACH ITEM in the collection: Gets the content control that contains the field. Throws an ItemNotFound
error if there isn't a parent content control.
parentContentControl?: Word.Interfaces.ContentControlLoadOptions;
Property Value
Remarks
parentContentControlOrNullObject
For EACH ITEM in the collection: Gets the content control that contains the field. If there isn't a parent content control, then this method will return an object with its isNullObject
property set to true
. For further information, see *OrNullObject methods and properties.
parentContentControlOrNullObject?: Word.Interfaces.ContentControlLoadOptions;
Property Value
Remarks
parentTable
For EACH ITEM in the collection: Gets the table that contains the field. Throws an ItemNotFound
error if it isn't contained in a table.
parentTable?: Word.Interfaces.TableLoadOptions;
Property Value
Remarks
parentTableCell
For EACH ITEM in the collection: Gets the table cell that contains the field. Throws an ItemNotFound
error if it isn't contained in a table cell.
parentTableCell?: Word.Interfaces.TableCellLoadOptions;
Property Value
Remarks
parentTableCellOrNullObject
For EACH ITEM in the collection: Gets the table cell that contains the field. If it isn't contained in a table cell, then this method will return an object with its isNullObject
property set to true
. For further information, see *OrNullObject methods and properties.
parentTableCellOrNullObject?: Word.Interfaces.TableCellLoadOptions;
Property Value
Remarks
parentTableOrNullObject
For EACH ITEM in the collection: Gets the table that contains the field. If it isn't contained in a table, then this method will return an object with its isNullObject
property set to true
. For further information, see *OrNullObject methods and properties.
parentTableOrNullObject?: Word.Interfaces.TableLoadOptions;
Property Value
Remarks
result
For EACH ITEM in the collection: Gets the field's result data.
result?: Word.Interfaces.RangeLoadOptions;
Property Value
Remarks
Office Add-ins
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for