RunProperties Class

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

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

[ChildElementInfoAttribute(typeof(Extend))]
[ChildElementInfoAttribute(typeof(Color))]
[ChildElementInfoAttribute(typeof(VerticalTextAlignment))]
[ChildElementInfoAttribute(typeof(Italic))]
[ChildElementInfoAttribute(typeof(Strike))]
[ChildElementInfoAttribute(typeof(Condense))]
[ChildElementInfoAttribute(typeof(Outline))]
[ChildElementInfoAttribute(typeof(Shadow))]
[ChildElementInfoAttribute(typeof(Underline))]
[ChildElementInfoAttribute(typeof(Bold))]
[ChildElementInfoAttribute(typeof(FontSize))]
[ChildElementInfoAttribute(typeof(RunFont))]
[ChildElementInfoAttribute(typeof(FontFamily))]
[ChildElementInfoAttribute(typeof(RunPropertyCharSet))]
[ChildElementInfoAttribute(typeof(FontScheme))]
public class RunProperties : OpenXmlCompositeElement

The following table lists the possible child types:

  • Bold <x:b>

  • Italic <x:i>

  • Strike <x:strike>

  • Condense <x:condense>

  • Extend <x:extend>

  • Outline <x:outline>

  • Shadow <x:shadow>

  • Underline <x:u>

  • VerticalTextAlignment <x:vertAlign>

  • FontSize <x:sz>

  • Color <x:color>

  • RunFont <x:rFont>

  • FontFamily <x:family>

  • RunPropertyCharSet <x:charset>

  • FontScheme <x:scheme>


[ISO/IEC 29500-1 1st Edition]

18.4.7 rPr (Run Properties)

This element represents a set of properties to apply to the contents of this rich text run.

Parent Elements

r (§18.4.4)

Child Elements

Subclause

b (Bold)

§18.8.2

charset (Character Set)

§18.4.1

color (Data Bar Color)

§18.3.1.15

condense (Condense)

§18.8.12

extend (Extend)

§18.8.17

family (Font Family)

§18.8.18

i (Italic)

§18.8.26

outline (Outline)

§18.4.2

rFont (Font)

§18.4.5

scheme (Scheme)

§18.8.35

shadow (Shadow)

§18.8.36

strike (Strike Through)

§18.4.10

sz (Font Size)

§18.4.11

u (Underline)

§18.4.13

vertAlign (Vertical Alignment)

§18.4.14

[Note: The W3C XML Schema definition of this element’s content model (CT_RPrElt) is located in §A.2. 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

ADD
Show:
© 2015 Microsoft