Share via


DataLabel Members

Include Protected Members
Include Inherited Members

Represents the data label on a chart point or trendline.

The DataLabel type exposes the following members.

Properties

  Name Description
Public property Application Returns an Application object that represents the Microsoft PowerPoint application. When used with an object qualifier, returns an Application object that represents the creator of the specified object (you can use this property with an Automation object to return the application of that object). Read-only
Public property AutoScaleFont Reserved for internal use.
Public property AutoText true if the object automatically generates appropriate text based on context. Read/write Boolean value.
Public property Border Reserved for internal use.
Public property Caption Returns or sets the data label text. Read/write string.
Public property Characters Returns a ChartCharacters object that represents a range of characters within the object text. You can use the ChartCharacters object to format characters within a text string.
Public property Creator Returns a 32-bit integer that indicates the application in which the specified object was created. Read-only.
Public property Fill Reserved for internal use.
Public property Font Reserved for internal use.
Public property Format Returns the line, fill, and effect formatting for the object. Read-only ChartFormat.
Public property Formula Returns or sets the object's formula in A1-style notation. Read/write.
Public property FormulaLocal Returns or sets the object's formula in A1-style notation. Read/write.
Public property FormulaR1C1 Returns or sets the formula for the object, using R1C1-style notation in the language of the macro. Read/write string.
Public property FormulaR1C1Local Returns or sets the formula for the object, using R1C1-style notation in the language of the user. Read/write string.
Public property Height Returns the height, in points, of the object. Read-only.
Public property HorizontalAlignment Returns or sets the horizontal alignment for the specified object. Read/write.
Public property Interior Reserved for internal use.
Public property Left Returns or sets the distance, in points, from the left edge of the object to the left edge of the chart area. Read/write double-precision floating-point number.
Public property Name Returns the name of the object. Read-only string.
Public property NumberFormat Returns or sets the format code for the object. Read/write string.
Public property NumberFormatLinked true if the number format is linked to the cells (so that the number format changes in the labels when it changes in the cells). Read/write Boolean value.
Public property NumberFormatLocal Returns or sets the format code for the object as a string in the language of the user. Read/write.
Public property Orientation Returns or sets the text orientation. Read/write 64-bit signed integer.
Public property Parent Returns the parent for the specified object. Read-only.
Public property Position Returns or sets the position of the data label. Read/write XlDataLabelPosition.
Public property ReadingOrder Returns or sets an XlReadingOrder constant that represents the reading order for the specified object. Read/write 64-bit signed integer.
Public property Separator Returns or sets the separator used for the data labels on a chart. Read/write.
Public property Shadow Returns or sets a value that indicates whether the object has a shadow. Read/write Boolean value.
Public property ShowBubbleSize true to show the bubble size for the data labels on a chart. false to hide the bubble size. Read/write Boolean value.
Public property ShowCategoryName true to display the category name for the data labels on a chart. false to hide the category name. Read/write Boolean value.
Public property ShowLegendKey true if the data label legend key is visible. Read/write Boolean value.
Public property ShowPercentage true to display the percentage value for the data labels on a chart. false to hide the value. Read/write Boolean value.
Public property ShowSeriesName true to show the series name for the data labels on a chart. false to hide the series name. Read/write Boolean value.
Public property ShowValue true to display a specified chart's data label values. false to hide the values. Read/write Boolean value..
Public property Text Returns or sets the text for the specified object. Read/write string.
Public property Top Returns or sets the distance, in points, from the top edge of the object to the top of the first row (on a worksheet) or the top of the chart area (on a chart). Read/write double-precision floating-point number.
Public property Type Reserved for internal use.
Public property VerticalAlignment Returns or sets the vertical alignment of the specified object. Read/write.
Public property Width Returns the width, in points, of the object. Read-only.

Top

Methods

  Name Description
Public method Delete Deletes the object.
Public method Select Selects the object.

Top

See Also

Reference

DataLabel Interface

Microsoft.Office.Interop.PowerPoint Namespace