ChartText Class

Defines the ChartText Class.When the object is serialized out as xml, its qualified name is c:tx.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Drawing.Charts.ChartText

Namespace:  DocumentFormat.OpenXml.Drawing.Charts
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(StringReference))> _
<ChildElementInfoAttribute(GetType(RichText))> _
<ChildElementInfoAttribute(GetType(StringLiteral))> _
Public Class ChartText _
    Inherits OpenXmlCompositeElement
'Usage
Dim instance As ChartText
[ChildElementInfoAttribute(typeof(StringReference))]
[ChildElementInfoAttribute(typeof(RichText))]
[ChildElementInfoAttribute(typeof(StringLiteral))]
public class ChartText : OpenXmlCompositeElement

Remarks

The following table lists the possible child types:

  • StringReference <c:strRef>

  • RichText <c:rich>

  • StringLiteral <c:strLit>

[ISO/IEC 29500-1 1st Edition]

21.2.2.214 tx (Chart Text)

This element specifies text to use on a chart, including rich text formatting.

Parent Elements

dispUnitsLbl (§21.2.2.46); dLbl (§21.2.2.47); title (§21.2.2.210); trendlineLbl (§21.2.2.212)

Child Elements

Subclause

rich (Rich Text)

§21.2.2.156

strRef (String Reference)

§21.2.2.201

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

ChartText Members

DocumentFormat.OpenXml.Drawing.Charts Namespace