Word.Interfaces.FieldUpdateData interface
An interface for updating data on the Field object, for use in field.set({ ... }).
Properties
| code | Specifies the field's code instruction. |
| data | Specifies data in a field of |
| locked | Specifies whether the field is locked. |
| result | Gets the field's result data. |
| show |
Specifies whether the field codes are displayed for the specified field. |
Property Details
code
Specifies the field's code instruction.
code?: string;
Property Value
string
Remarks
Note: The ability to set the code was introduced in WordApi 1.5.
data
Specifies data in a field of addin type. If the field isn't an addin type, it's null and it will throw a general exception when code attempts to set it.
data?: string;
Property Value
string
Remarks
locked
Specifies whether the field is locked. true if the field is locked, false otherwise.
locked?: boolean;
Property Value
boolean
Remarks
result
Gets the field's result data.
result?: Word.Interfaces.RangeUpdateData;
Property Value
Remarks
showCodes
Specifies whether the field codes are displayed for the specified field. true if the field codes are displayed, false otherwise.
showCodes?: boolean;
Property Value
boolean