Block¶
Represents a block-level element, such as a paragraph or a table.
Capabilities¶
Properties¶
- Block.Content: Gets the content range of the element, for example to replace text only inside this element.
- Block.ElementType: Gets the element type name, such as
'Paragraph','Run'or'Table'.
Methods¶
- Block.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. - Block.GetChildElements: Returns the child elements.
- Block.GetParentElements: Returns the ancestors of the element, starting from the direct parent.