Export (0) Print
Expand All

PreviousRunProperties class

Previous Run Properties. When the object is serialized out as xml, its qualified name is w:rPr.

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Wordprocessing.PreviousRunProperties

Namespace:  DocumentFormat.OpenXml.Wordprocessing
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

[ChildElementInfoAttribute(typeof(Reflection), FileFormatVersions.None|FileFormatVersions.Office2010|FileFormatVersions.Office2013)]
[ChildElementInfoAttribute(typeof(RunStyle))]
[ChildElementInfoAttribute(typeof(RunFonts))]
[ChildElementInfoAttribute(typeof(Bold))]
[ChildElementInfoAttribute(typeof(BoldComplexScript))]
[ChildElementInfoAttribute(typeof(Italic))]
[ChildElementInfoAttribute(typeof(ItalicComplexScript))]
[ChildElementInfoAttribute(typeof(Caps))]
[ChildElementInfoAttribute(typeof(SmallCaps))]
[ChildElementInfoAttribute(typeof(Strike))]
[ChildElementInfoAttribute(typeof(DoubleStrike))]
[ChildElementInfoAttribute(typeof(Outline))]
[ChildElementInfoAttribute(typeof(Shadow))]
[ChildElementInfoAttribute(typeof(Emboss))]
[ChildElementInfoAttribute(typeof(Imprint))]
[ChildElementInfoAttribute(typeof(NoProof))]
[ChildElementInfoAttribute(typeof(SnapToGrid))]
[ChildElementInfoAttribute(typeof(Vanish))]
[ChildElementInfoAttribute(typeof(WebHidden))]
[ChildElementInfoAttribute(typeof(Color))]
[ChildElementInfoAttribute(typeof(Spacing))]
[ChildElementInfoAttribute(typeof(CharacterScale))]
[ChildElementInfoAttribute(typeof(Kern))]
[ChildElementInfoAttribute(typeof(Position))]
[ChildElementInfoAttribute(typeof(FontSize))]
[ChildElementInfoAttribute(typeof(FontSizeComplexScript))]
[ChildElementInfoAttribute(typeof(Highlight))]
[ChildElementInfoAttribute(typeof(Underline))]
[ChildElementInfoAttribute(typeof(TextEffect))]
[ChildElementInfoAttribute(typeof(Border))]
[ChildElementInfoAttribute(typeof(Shading))]
[ChildElementInfoAttribute(typeof(FitText))]
[ChildElementInfoAttribute(typeof(VerticalTextAlignment))]
[ChildElementInfoAttribute(typeof(RightToLeftText))]
[ChildElementInfoAttribute(typeof(ComplexScript))]
[ChildElementInfoAttribute(typeof(Emphasis))]
[ChildElementInfoAttribute(typeof(Languages))]
[ChildElementInfoAttribute(typeof(EastAsianLayout))]
[ChildElementInfoAttribute(typeof(SpecVanish))]
[ChildElementInfoAttribute(typeof(Glow), FileFormatVersions.None|FileFormatVersions.Office2010|FileFormatVersions.Office2013)]
[ChildElementInfoAttribute(typeof(Shadow), FileFormatVersions.None|FileFormatVersions.Office2010|FileFormatVersions.Office2013)]
[ChildElementInfoAttribute(typeof(TextOutlineEffect), FileFormatVersions.None|FileFormatVersions.Office2010|FileFormatVersions.Office2013)]
[ChildElementInfoAttribute(typeof(FillTextEffect), FileFormatVersions.None|FileFormatVersions.Office2010|FileFormatVersions.Office2013)]
[ChildElementInfoAttribute(typeof(Scene3D), FileFormatVersions.None|FileFormatVersions.Office2010|FileFormatVersions.Office2013)]
[ChildElementInfoAttribute(typeof(Properties3D), FileFormatVersions.None|FileFormatVersions.Office2010|FileFormatVersions.Office2013)]
[ChildElementInfoAttribute(typeof(Ligatures), FileFormatVersions.None|FileFormatVersions.Office2010|FileFormatVersions.Office2013)]
[ChildElementInfoAttribute(typeof(NumberingFormat), FileFormatVersions.None|FileFormatVersions.Office2010|FileFormatVersions.Office2013)]
[ChildElementInfoAttribute(typeof(NumberSpacing), FileFormatVersions.None|FileFormatVersions.Office2010|FileFormatVersions.Office2013)]
[ChildElementInfoAttribute(typeof(StylisticSets), FileFormatVersions.None|FileFormatVersions.Office2010|FileFormatVersions.Office2013)]
[ChildElementInfoAttribute(typeof(ContextualAlternatives), FileFormatVersions.None|FileFormatVersions.Office2010|FileFormatVersions.Office2013)]
public class PreviousRunProperties : OpenXmlCompositeElement

[ISO/IEC 29500-1 1st Edition]

rPr (Previous Run Properties)

This element specifies a set of run properties which shall be attributed to a revision by a particular author and at a particular time. This element contains the set of properties which have been tracked as a specific set of revisions by one author.

[Example: Consider a run which has a set of run formatting properties that were added with revision tracking turned on. This set of revised properties is specified in the run properties as follows:

<w:r>
  <w:rPr>
    <w:b />
    <w:imprint />
    <w:lang w:val="en-ca" /> 
    <w:rPrChange … w:author="user1">
      <w:rPr>
        <w:i /> 
        <w:dstrike w:val="false" />
      </w:rPr>
    </w:rPrChange> 
  </w:rPr>
</w:r>

The rPr element under rPrChange specifies the properties which were applied to the current run before revision tracking was turned on - in this case, italics using the i element (§17.3.2.16), and that any double strikethrough which was applied based on the style hierarchy must be turned off using the dstrike element (§17.3.2.9). end example]

Parent Elements

del (§17.13.5.13); ins (§17.13.5.16); rPrChange (§17.13.5.31)

Child Elements

Subclause

b (Bold)

§17.3.2.1

bCs (Complex Script Bold)

§17.3.2.2

bdr (Text Border)

§17.3.2.4

caps (Display All Characters As Capital Letters)

§17.3.2.5

color (Run Content Color)

§17.3.2.6

cs (Use Complex Script Formatting on Run)

§17.3.2.7

dstrike (Double Strikethrough)

§17.3.2.9

eastAsianLayout (East Asian Typography Settings)

§17.3.2.10

effect (Animated Text Effect)

§17.3.2.11

em (Emphasis Mark)

§17.3.2.12

emboss (Embossing)

§17.3.2.13

fitText (Manual Run Width)

§17.3.2.14

highlight (Text Highlighting)

§17.3.2.15

i (Italics)

§17.3.2.16

iCs (Complex Script Italics)

§17.3.2.17

imprint (Imprinting)

§17.3.2.18

kern (Font Kerning)

§17.3.2.19

lang (Languages for Run Content)

§17.3.2.20

noProof (Do Not Check Spelling or Grammar)

§17.3.2.21

oMath (Office Open XML Math)

§17.3.2.22

outline (Display Character Outline)

§17.3.2.23

position (Vertically Raised or Lowered Text)

§17.3.2.24

rFonts (Run Fonts)

§17.3.2.26

rStyle (Referenced Character Style)

§17.3.2.29

rtl (Right To Left Text)

§17.3.2.30

shadow (Shadow)

§17.3.2.31

shd (Run Shading)

§17.3.2.32

smallCaps (Small Caps)

§17.3.2.33

snapToGrid (Use Document Grid Settings For Inter-Character Spacing)

§17.3.2.34

spacing (Character Spacing Adjustment)

§17.3.2.35

specVanish (Paragraph Mark Is Always Hidden)

§17.3.2.36

strike (Single Strikethrough)

§17.3.2.37

sz (Non-Complex Script Font Size)

§17.3.2.38

szCs (Complex Script Font Size)

§17.3.2.39

u (Underline)

§17.3.2.40

vanish (Hidden Text)

§17.3.2.41

vertAlign (Subscript/Superscript Text)

§17.3.2.42

w (Expanded/Compressed Text)

§17.3.2.43

webHidden (Web Hidden Text)

§17.3.2.44

[Note: The W3C XML Schema definition of this element’s content model (CT_RPrOriginal) is located in §A.1. end note]

© ISO/IEC29500: 2008.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

Show:
© 2014 Microsoft