Partager via


DataLabels Members (Excel)

A collection of all the DataLabel objects for the specified series.

Methods

Name

Description

Delete

Deletes the object.

Item

Returns a single object from a collection.

Select

Selects the object.

Properties

Name

Description

Application

When used without an object qualifier, this property returns an Application object that represents the Microsoft Excel application. When used with an object qualifier, this property returns an Application object that represents the creator of the specified object (you can use this property with an OLE Automation object to return the application of that object). Read-only.

AutoText

True if the object automatically generates appropriate text based on context. Read/write Boolean.

Count

Returns a Long value that represents the number of objects in the collection.

Creator

Returns a 32-bit integer that indicates the application in which this object was created. Read-only Long.

Format

Returns the ChartFormat object. Read-only.

HorizontalAlignment

Returns or sets a Variant value that represents the horizontal alignment for the specified object.

Name

Returns a String value that represents the name of the object.

NumberFormat

Returns or sets a String value that represents the format code for the object.

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.

NumberFormatLocal

Returns or sets a Variant value that represents the format code for the object as a string in the language of the user.

Orientation

Returns or sets a Variant value that represents the text orientation.

Parent

Returns the parent object for the specified object. Read-only.

Position

Returns or sets a XlDataLabelPosition value that represents the position of the data label.

ReadingOrder

Returns or sets the reading order for the specified object. Can be one of the following constants: xlRTL (right-to-left), xlLTR (left-to-right), or xlContext. Read/write Long.

Separator

Sets or returns a Variant representing the separator used for the data labels on a chart. Read/write.

Shadow

Returns or sets a Boolean value that determines if the object has a shadow.

ShowBubbleSize

True to show the bubble size for the data labels on a chart. False to hide. Read/write Boolean.

ShowCategoryName

True to display the category name for the data labels on a chart. False to hide. Read/write Boolean.

ShowLegendKey

True if the data label legend key is visible. Read/write Boolean.

ShowPercentage

True to display the percentage value for the data labels on a chart. False to hide. Read/write Boolean.

ShowSeriesName

Returns or sets a Boolean to indicate the series name display behavior for the data labels on a chart. True to show the series name. False to hide. Read/write.

ShowValue

Returns or sets a Boolean corresponding to a specified chart's data label values display behavior. True displays the values. False to hide. Read/write.

VerticalAlignment

Returns or sets a Variant value that represents the vertical alignment of the specified object.