Поделиться через


PreviousRunProperties Class

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

Inheritance Hierarchy

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

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

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(EastAsianLayout))> _
<ChildElementInfoAttribute(GetType(RunStyle))> _
<ChildElementInfoAttribute(GetType(RunFonts))> _
<ChildElementInfoAttribute(GetType(Bold))> _
<ChildElementInfoAttribute(GetType(BoldComplexScript))> _
<ChildElementInfoAttribute(GetType(Italic))> _
<ChildElementInfoAttribute(GetType(ItalicComplexScript))> _
<ChildElementInfoAttribute(GetType(Caps))> _
<ChildElementInfoAttribute(GetType(SmallCaps))> _
<ChildElementInfoAttribute(GetType(Strike))> _
<ChildElementInfoAttribute(GetType(DoubleStrike))> _
<ChildElementInfoAttribute(GetType(Outline))> _
<ChildElementInfoAttribute(GetType(Shadow))> _
<ChildElementInfoAttribute(GetType(Emboss))> _
<ChildElementInfoAttribute(GetType(Imprint))> _
<ChildElementInfoAttribute(GetType(NoProof))> _
<ChildElementInfoAttribute(GetType(SnapToGrid))> _
<ChildElementInfoAttribute(GetType(Vanish))> _
<ChildElementInfoAttribute(GetType(WebHidden))> _
<ChildElementInfoAttribute(GetType(Color))> _
<ChildElementInfoAttribute(GetType(Spacing))> _
<ChildElementInfoAttribute(GetType(CharacterScale))> _
<ChildElementInfoAttribute(GetType(Kern))> _
<ChildElementInfoAttribute(GetType(Position))> _
<ChildElementInfoAttribute(GetType(FontSize))> _
<ChildElementInfoAttribute(GetType(FontSizeComplexScript))> _
<ChildElementInfoAttribute(GetType(Highlight))> _
<ChildElementInfoAttribute(GetType(Underline))> _
<ChildElementInfoAttribute(GetType(TextEffect))> _
<ChildElementInfoAttribute(GetType(Border))> _
<ChildElementInfoAttribute(GetType(Shading))> _
<ChildElementInfoAttribute(GetType(FitText))> _
<ChildElementInfoAttribute(GetType(VerticalTextAlignment))> _
<ChildElementInfoAttribute(GetType(RightToLeftText))> _
<ChildElementInfoAttribute(GetType(ComplexScript))> _
<ChildElementInfoAttribute(GetType(Emphasis))> _
<ChildElementInfoAttribute(GetType(Languages))> _
<ChildElementInfoAttribute(GetType(SpecVanish))> _
<ChildElementInfoAttribute(GetType(Glow), FileFormatVersions.Office2010)> _
<ChildElementInfoAttribute(GetType(Shadow), FileFormatVersions.Office2010)> _
<ChildElementInfoAttribute(GetType(Reflection), FileFormatVersions.Office2010)> _
<ChildElementInfoAttribute(GetType(TextOutlineEffect), FileFormatVersions.Office2010)> _
<ChildElementInfoAttribute(GetType(FillTextEffect), FileFormatVersions.Office2010)> _
<ChildElementInfoAttribute(GetType(Scene3D), FileFormatVersions.Office2010)> _
<ChildElementInfoAttribute(GetType(Properties3D), FileFormatVersions.Office2010)> _
<ChildElementInfoAttribute(GetType(Ligatures), FileFormatVersions.Office2010)> _
<ChildElementInfoAttribute(GetType(NumberingFormat), FileFormatVersions.Office2010)> _
<ChildElementInfoAttribute(GetType(NumberSpacing), FileFormatVersions.Office2010)> _
<ChildElementInfoAttribute(GetType(StylisticSets), FileFormatVersions.Office2010)> _
<ChildElementInfoAttribute(GetType(ContextualAlternatives), FileFormatVersions.Office2010)> _
Public Class PreviousRunProperties _
    Inherits OpenXmlCompositeElement
'Usage
Dim instance As PreviousRunProperties
[ChildElementInfoAttribute(typeof(EastAsianLayout))]
[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(SpecVanish))]
[ChildElementInfoAttribute(typeof(Glow), FileFormatVersions.Office2010)]
[ChildElementInfoAttribute(typeof(Shadow), FileFormatVersions.Office2010)]
[ChildElementInfoAttribute(typeof(Reflection), FileFormatVersions.Office2010)]
[ChildElementInfoAttribute(typeof(TextOutlineEffect), FileFormatVersions.Office2010)]
[ChildElementInfoAttribute(typeof(FillTextEffect), FileFormatVersions.Office2010)]
[ChildElementInfoAttribute(typeof(Scene3D), FileFormatVersions.Office2010)]
[ChildElementInfoAttribute(typeof(Properties3D), FileFormatVersions.Office2010)]
[ChildElementInfoAttribute(typeof(Ligatures), FileFormatVersions.Office2010)]
[ChildElementInfoAttribute(typeof(NumberingFormat), FileFormatVersions.Office2010)]
[ChildElementInfoAttribute(typeof(NumberSpacing), FileFormatVersions.Office2010)]
[ChildElementInfoAttribute(typeof(StylisticSets), FileFormatVersions.Office2010)]
[ChildElementInfoAttribute(typeof(ContextualAlternatives), FileFormatVersions.Office2010)]
public class PreviousRunProperties : OpenXmlCompositeElement

Remarks

The following table lists the possible child types:

  • RunStyle <w:rStyle>

  • RunFonts <w:rFonts>

  • Bold <w:b>

  • BoldComplexScript <w:bCs>

  • Italic <w:i>

  • ItalicComplexScript <w:iCs>

  • Caps <w:caps>

  • SmallCaps <w:smallCaps>

  • Strike <w:strike>

  • DoubleStrike <w:dstrike>

  • Outline <w:outline>

  • Shadow <w:shadow>

  • Emboss <w:emboss>

  • Imprint <w:imprint>

  • NoProof <w:noProof>

  • SnapToGrid <w:snapToGrid>

  • Vanish <w:vanish>

  • WebHidden <w:webHidden>

  • Color <w:color>

  • Spacing <w:spacing>

  • CharacterScale <w:w>

  • Kern <w:kern>

  • Position <w:position>

  • FontSize <w:sz>

  • FontSizeComplexScript <w:szCs>

  • Highlight <w:highlight>

  • Underline <w:u>

  • TextEffect <w:effect>

  • Border <w:bdr>

  • Shading <w:shd>

  • FitText <w:fitText>

  • VerticalTextAlignment <w:vertAlign>

  • RightToLeftText <w:rtl>

  • ComplexScript <w:cs>

  • Emphasis <w:em>

  • Languages <w:lang>

  • EastAsianLayout <w:eastAsianLayout>

  • SpecVanish <w:specVanish>

  • DocumentFormat.OpenXml.Office2010.Word.Glow <w14:glow>

  • DocumentFormat.OpenXml.Office2010.Word.Shadow <w14:shadow>

  • DocumentFormat.OpenXml.Office2010.Word.Reflection <w14:reflection>

  • DocumentFormat.OpenXml.Office2010.Word.TextOutlineEffect <w14:textOutline>

  • DocumentFormat.OpenXml.Office2010.Word.FillTextEffect <w14:textFill>

  • DocumentFormat.OpenXml.Office2010.Word.Scene3D <w14:scene3d>

  • DocumentFormat.OpenXml.Office2010.Word.Properties3D <w14:props3d>

  • DocumentFormat.OpenXml.Office2010.Word.Ligatures <w14:ligatures>

  • DocumentFormat.OpenXml.Office2010.Word.NumberingFormat <w14:numForm>

  • DocumentFormat.OpenXml.Office2010.Word.NumberSpacing <w14:numSpacing>

  • DocumentFormat.OpenXml.Office2010.Word.StylisticSets <w14:stylisticSets>

  • DocumentFormat.OpenXml.Office2010.Word.ContextualAlternatives <w14:cntxtAlts>

[ISO/IEC 29500-1 1st Edition]

17.3.2.27 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.

Thread Safety

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

See Also

Reference

PreviousRunProperties Members

DocumentFormat.OpenXml.Wordprocessing Namespace