Run¶
Represents a piece of text with a single character format.
Capabilities¶
Text and Formatting¶
- Run.CharacterFormat: Gets the character format. Change its properties to format the text, for example
run.CharacterFormat.Bold = true. - Run.Text: Gets or sets the run text.
Properties¶
- Run.Content: Gets the content range of the element, for example to replace text only inside this element.
- Run.ElementType: Gets the element type name, such as
'Paragraph','Run'or'Table'.
Methods¶
- Run.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. - Run.GetChildElements: Returns the child elements.
- Run.GetParentElements: Returns the ancestors of the element, starting from the direct parent.