Run Class
Rich Text Run.When the object is serialized out as xml, its qualified name is x:r.
Inheritance Hierarchy
System.Object
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlCompositeElement
DocumentFormat.OpenXml.Spreadsheet.Run
Namespace: DocumentFormat.OpenXml.Spreadsheet
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'Declaration
<ChildElementInfoAttribute(GetType(RunProperties))> _
<ChildElementInfoAttribute(GetType(Text))> _
Public Class Run _
Inherits OpenXmlCompositeElement
'Usage
Dim instance As Run
[ChildElementInfoAttribute(typeof(RunProperties))]
[ChildElementInfoAttribute(typeof(Text))]
public class Run : OpenXmlCompositeElement
Remarks
The following table lists the possible child types:
RunProperties <x:rPr>
Text <x:t>
[ISO/IEC 29500-1 1st Edition]
18.4.4 r (Rich Text Run)
This element represents a run of rich text. A rich text run is a region of text that share a common set of properties, such as formatting properties. The properties are defined in the rPr element, and the text displayed to the user is defined in the Text (t) element.
Parent Elements |
---|
is (§18.3.1.53); si (§18.4.8); text (§18.7.7) |
Child Elements |
Subclause |
---|---|
rPr (Run Properties) |
§18.4.7 |
t (Text) |
§18.4.12 |
[Note: The W3C XML Schema definition of this element’s content model (CT_RElt) 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.