Field¶
Represents a field.
Capabilities¶
References¶
- Field.CharacterFormat: Gets or sets the character format.
- Field.FieldType: Gets the field type.
- Field.InstructionInlines: Gets the field instruction inlines.
- Field.IsDirty: Gets or sets whether the field is dirty.
- Field.IsLocked: Gets or sets whether the field is locked.
- Field.ResultInlines: Gets the field result inlines.
- Field.GetInstructionText: Gets the field instruction text, or
nullwhen the instruction contains elements other than text and bookmarks, such as nested fields. - Field.Update: Recalculates the field result.
Properties¶
- Field.Content: Gets the content range of the element, for example to replace text only inside this element.
- Field.ElementType: Gets the element type name, such as
'Paragraph','Run'or'Table'.
Methods¶
- Field.Clone: Creates a copy of the element. The copy is not part of the document until it is added to a collection with the collection's
Appendmethod, such as BlockCollection.Append. - Field.GetChildElements: Returns the child elements.
- Field.GetParentElements: Returns the ancestors of the element, starting from the direct parent.