Share via


ChartText class

Defines the ChartText Class.This class is only available in O15. When the object is serialized out as xml, its qualified name is c15:tx.

Inheritance hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Office15.Drawing.Chart.ChartText

Namespace:  DocumentFormat.OpenXml.Office15.Drawing.Chart
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

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

Remarks

2.3.59 tx

Target namespace: https://schemas.microsoft.com/office/drawing/2012/chart

tx s a CT_Tx ([ISO/IEC-29500-1] section 21.2.2.215) element that specifies the text string stored in the default datalabel (section 2.2.1.3) of a chart series ([ISO/IEC-29500-1] section 21.2). This string represents the text that will be shown in every datalabel on the series which does not have custom properties of its own.

The following W3C XML Schema ([XMLSCHEMA1] section 2.1) fragment specifies the contents of this element.

<xsd:element name="tx" type="c:CT_Tx"/>

See section 5.14 for the full W3C XML Schema ([XMLSCHEMA1] section 2.1).

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.Office15.Drawing.Chart namespace