[]
Represents a contiguous fragment of a body content with uniform formatting.
Use GetRange() to access the range of objects inside a run.
public class Run : FormattedContentObject, IBrowsable<Run>
Public Class Run
Inherits FormattedContentObject
Implements IBrowsable(Of Run)
A run most commonly contains a single Text object, but it can also contain no or more than one texts and/or other objects.
To get a string representing all text in a run:
string text = run.GetRange().Text;
Name | Description |
---|---|
Font | Provides access to font formatting of this run. |
IsOMathRun | Gets whether the run belongs to an Office Math zone. |
Next | Gets the next run content. |
OMathFormat | Gets Office Math formatting for the run if the IsOMathRun property is set to true. |
Previous | Gets the previous run content. |
RevisionId | Gets unique identifiers used to track the run editing session. |
Style | Gets or sets character or linked paragraph style which shall be used to format the contents of this run. |
Name | Description |
---|---|
AddBreak() | Adds a Break to the end of the run. |
AddBreak(BreakType) | Adds a Break to the end of the run. |
AddBreak(BreakType, BreakClear) | Adds a Break to the end of the run. |
AddCanvasShape() | Adds a CanvasShape to the end of the run. |
AddCanvasShape(float, float) | Adds a CanvasShape to the end of the run. |
AddGroupShape() | Adds a GroupShape to the end of the run. |
AddGroupShape(float, float) | Adds a GroupShape to the end of the run. |
AddInkShape(XmlDocument) | Adds an InkShape> to the end of the run. |
AddInkShape(XmlDocument, float, float) | Adds an InkShape to the end of the run. |
AddLastRenderedPageBreak() | Adds a LastRenderedPageBreak to the end of the run. |
AddPicture() | Adds a new Picture to the end of the run. |
AddPicture(Image) | Adds a new Picture to the end of the run. |
AddPicture(byte[], string) | Adds a new Picture to the end of the run. |
AddPicture(byte[], string, float, float) | Adds a new Picture to the end of the run. |
AddShape() | Adds a new Rectangle Shape (100 x 100 points) to the end of the run. |
AddShape(float, float, GeometryType) | Adds a new Shape with a specified size and text to the end of the run. |
AddShape(float, float, string) | Adds a new Rectangle Shape with a specified size and text to the end of the run. |
AddShape(float, float, string, GeometryType) | Adds a new Shape with a specified size, text and geometry to the end of the run. |
AddSymbol(char, string) | Adds a Symbol to the end of the run. |
AddTab() | Adds a Tab to the end of the run. |
AddTab(TabAlignment) | Adds a Tab to the end of the run. |
AddTab(TabAlignment, TabLeader) | Adds a Tab to the end of the run. |
AddTab(TabAlignment, TabLeader, TabRelativeTo) | Adds a Tab to the end of the run. |
AddText(string) | Adds a Text to the end of the run. |
Split(ContentObject, InsertLocation) | Splits the run at a specified location relative to a specified child content. |