API Reference
WordRunSnapshot
Extracted text, character formatting, links, notes, and images for one Word run.
Inheritance
- Object
- WordRunSnapshot
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Property WordParagraphSnapshot.Runs
Constructors
public WordRunSnapshot() #Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object
Properties
public String Text { get; set; } #Gets text extracted from the run, including text hidden by run formatting.
public Boolean Bold { get; set; } #Gets whether bold formatting is authored directly on the run.
public Boolean Italic { get; set; } #Gets whether italic formatting is authored directly on the run.
public Boolean Underline { get; set; } #Gets whether underline formatting is authored directly on the run.
public Nullable<WordUnderlineStyle> UnderlineStyle { get; set; } #Gets the authored underline style.
public Boolean Strike { get; set; } #Gets whether single or double strikethrough is authored directly on the run.
public Boolean DoubleStrike { get; set; } #Gets whether double strikethrough is authored directly on the run.
public Nullable<Int32> FontSize { get; set; } #Gets the directly authored integral compatibility font size in points, truncated from half-point precision.
public Nullable<Double> FontSizePoints { get; set; } #Gets the directly authored run font size in points with Word's native half-point precision.
public String FontFamily { get; set; } #Gets the font family authored directly on the run, without resolving inherited styles.
public String ColorHex { get; set; } #Gets the OOXML text-color token authored directly on the run.
public String HighlightColor { get; set; } #Gets the named Word highlight color.
public String RunShadingFillColorHex { get; set; } #Gets the OOXML run-shading fill token authored directly on the run.
public Nullable<WordShadingPattern> RunShadingPattern { get; set; } #Run shading pattern, when explicitly authored.
public String VerticalTextAlignment { get; set; } #Gets vertical alignment such as superscript or subscript.
public String CapsStyle { get; set; } #Gets capitalization formatting such as caps or small caps.
public Boolean IsHyperlink { get; set; } #Gets whether the run belongs to a hyperlink.
public String HyperlinkUri { get; set; } #Gets the external hyperlink URI.
public String HyperlinkAnchor { get; set; } #Gets the internal bookmark target.
public WordFootnoteSnapshot Footnote { get; set; } #Gets the referenced footnote content.
public WordEndnoteSnapshot Endnote { get; set; } #Gets the referenced endnote content.
public WordInlineImageSnapshot InlineImage { get; set; } #Gets the first inline or positioned image encountered in the run.