DataLabel Class

Data Label.When the object is serialized out as xml, its qualified name is c:dLbl.

Inheritance Hierarchy

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

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

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(ExtensionList))> _
<ChildElementInfoAttribute(GetType(ChartText))> _
<ChildElementInfoAttribute(GetType(DataLabelPosition))> _
<ChildElementInfoAttribute(GetType(Separator))> _
<ChildElementInfoAttribute(GetType(Delete))> _
<ChildElementInfoAttribute(GetType(Layout))> _
<ChildElementInfoAttribute(GetType(NumberingFormat))> _
<ChildElementInfoAttribute(GetType(ChartShapeProperties))> _
<ChildElementInfoAttribute(GetType(TextProperties))> _
<ChildElementInfoAttribute(GetType(Index))> _
<ChildElementInfoAttribute(GetType(ShowLegendKey))> _
<ChildElementInfoAttribute(GetType(ShowValue))> _
<ChildElementInfoAttribute(GetType(ShowCategoryName))> _
<ChildElementInfoAttribute(GetType(ShowSeriesName))> _
<ChildElementInfoAttribute(GetType(ShowPercent))> _
<ChildElementInfoAttribute(GetType(ShowBubbleSize))> _
Public Class DataLabel _
    Inherits OpenXmlCompositeElement
'Usage
Dim instance As DataLabel
[ChildElementInfoAttribute(typeof(ExtensionList))]
[ChildElementInfoAttribute(typeof(ChartText))]
[ChildElementInfoAttribute(typeof(DataLabelPosition))]
[ChildElementInfoAttribute(typeof(Separator))]
[ChildElementInfoAttribute(typeof(Delete))]
[ChildElementInfoAttribute(typeof(Layout))]
[ChildElementInfoAttribute(typeof(NumberingFormat))]
[ChildElementInfoAttribute(typeof(ChartShapeProperties))]
[ChildElementInfoAttribute(typeof(TextProperties))]
[ChildElementInfoAttribute(typeof(Index))]
[ChildElementInfoAttribute(typeof(ShowLegendKey))]
[ChildElementInfoAttribute(typeof(ShowValue))]
[ChildElementInfoAttribute(typeof(ShowCategoryName))]
[ChildElementInfoAttribute(typeof(ShowSeriesName))]
[ChildElementInfoAttribute(typeof(ShowPercent))]
[ChildElementInfoAttribute(typeof(ShowBubbleSize))]
public class DataLabel : OpenXmlCompositeElement

Remarks

The following table lists the possible child types:

  • Index <c:idx>

  • Delete <c:delete>

  • Layout <c:layout>

  • ChartText <c:tx>

  • NumberingFormat <c:numFmt>

  • ChartShapeProperties <c:spPr>

  • TextProperties <c:txPr>

  • DataLabelPosition <c:dLblPos>

  • ShowLegendKey <c:showLegendKey>

  • ShowValue <c:showVal>

  • ShowCategoryName <c:showCatName>

  • ShowSeriesName <c:showSerName>

  • ShowPercent <c:showPercent>

  • ShowBubbleSize <c:showBubbleSize>

  • Separator <c:separator>

  • ExtensionList <c:extLst>

[ISO/IEC 29500-1 1st Edition]

21.2.2.47 dLbl (Data Label)

This element specifies a data label.

Parent Elements

dLbls (§21.2.2.49); pivotFmt (§21.2.2.142)

Child Elements

Subclause

delete (Delete)

§21.2.2.40

dLblPos (Data Label Position)

§21.2.2.48

extLst (Chart Extensibility)

§21.2.2.64

idx (Index)

§21.2.2.84

layout (Layout)

§21.2.2.88

numFmt (Number Format)

§21.2.2.121

separator (Separator)

§21.2.2.166

showBubbleSize (Show Bubble Size)

§21.2.2.178

showCatName (Show Category Name)

§21.2.2.179

showLegendKey (Show Legend Key)

§21.2.2.184

showPercent (Show Percent)

§21.2.2.187

showSerName (Show Series Name)

§21.2.2.188

showVal (Show Value)

§21.2.2.189

spPr (Shape Properties)

§21.2.2.197

tx (Chart Text)

§21.2.2.214

txPr (Text Properties)

§21.2.2.216

[Note: The W3C XML Schema definition of this element’s content model (CT_DLbl) 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

DataLabel Members

DocumentFormat.OpenXml.Drawing.Charts Namespace