API Reference
Struct
FormattedRun
Represents a run of text or image with associated formatting flags.
Inheritance
- ValueType
- FormattedRun
Constructors
public FormattedRun(String text, WordImage image, Boolean bold, Boolean italic, Boolean underline, Boolean strike, Boolean superscript, Boolean subscript, Boolean code, String hyperlink) #Initializes a new instance of the FormattedRun struct.
Parameters
- text System.String
- Text content of the run.
- image OfficeIMO.Word.WordImage
- Embedded image for the run.
- bold System.Boolean
- Indicates whether bold formatting is applied.
- italic System.Boolean
- Indicates whether italic formatting is applied.
- underline System.Boolean
- Indicates whether underline formatting is applied.
- strike System.Boolean
- Indicates whether strike-through formatting is applied.
- superscript System.Boolean
- Indicates whether superscript formatting is applied.
- subscript System.Boolean
- Indicates whether subscript formatting is applied.
- code System.Boolean
- Indicates whether monospace formatting is applied.
- hyperlink System.String
- Hyperlink target associated with the run.
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from ValueType
Parameters
- obj Object
Properties
public String Text { get; } #Text content of the run, if any.
public WordImage Image { get; } #Embedded image for the run, when present.
public Boolean Bold { get; } #Indicates whether bold formatting is applied.
public Boolean Italic { get; } #Indicates whether italic formatting is applied.
public Boolean Underline { get; } #Indicates whether underline formatting is applied.
public Boolean Strike { get; } #Indicates whether strike-through formatting is applied.
public Boolean Superscript { get; } #Indicates whether superscript formatting is applied.
public Boolean Subscript { get; } #Indicates whether subscript formatting is applied.
public Boolean Code { get; } #Indicates whether the run should be rendered with monospace formatting.
public String Hyperlink { get; } #Hyperlink target associated with the run.