Partager via


RunProperties Class

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

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Spreadsheet.RunProperties

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

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(Extend))> _
<ChildElementInfoAttribute(GetType(Color))> _
<ChildElementInfoAttribute(GetType(VerticalTextAlignment))> _
<ChildElementInfoAttribute(GetType(Italic))> _
<ChildElementInfoAttribute(GetType(Strike))> _
<ChildElementInfoAttribute(GetType(Condense))> _
<ChildElementInfoAttribute(GetType(Outline))> _
<ChildElementInfoAttribute(GetType(Shadow))> _
<ChildElementInfoAttribute(GetType(Underline))> _
<ChildElementInfoAttribute(GetType(Bold))> _
<ChildElementInfoAttribute(GetType(FontSize))> _
<ChildElementInfoAttribute(GetType(RunFont))> _
<ChildElementInfoAttribute(GetType(FontFamily))> _
<ChildElementInfoAttribute(GetType(RunPropertyCharSet))> _
<ChildElementInfoAttribute(GetType(FontScheme))> _
Public Class RunProperties _
    Inherits OpenXmlCompositeElement
'Usage
Dim instance As RunProperties
[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

Remarks

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.

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

RunProperties Members

DocumentFormat.OpenXml.Spreadsheet Namespace