接口 IDataLabels
- 所有超级接口:
Iterable<IDataLabel>
Represents a collection of all the
IDataLabel
objects for thespecified series. Each DataLabel object represents a data label for a point or trendline. For a series without definable points (such as an area series), the DataLabels collection contains a single data label.-
方法概要
修饰符和类型方法说明get
(int index) Returns a single object from the collection.boolean
Gets whether the object automatically generates appropriate text based on context.int
getCount()
Returns the number of objects in the collection.getFont()
Returns theIFontFormat
object that represents the font of thespecified object.Returns theIChartFormat
object.Returns leader lines of the data label.Gets the format code for the object.boolean
Gets whether the number format is linked to the cells (so that the number format changes in the labels when it changes in the cells).int
Gets the text orientation.Returns the parent object for the specified object.Gets the position of the data label.Gets an object that represents the separator used for the data labels on a chart.boolean
Gets whether to show the bubble size (True to show the bubble size for the data labels on a chart; False to hide).boolean
Gets whether to show the category name (True to display the category name for the data labels on a chart; False to hide).boolean
Gets a Boolean that corresponds to a specified chart's data label values display behavior.boolean
Gets whether the data label legend key is visible.boolean
Gets whether to display a percentage (True to display the percentage value for the data labels on a chart; False to hide).boolean
Gets a Boolean to indicate the series name display behavior for the data labels on a chart.boolean
Gets a Boolean that corresponds to a specified chart's data label values display behavior.void
setAutoText
(boolean value) Sets whether the object automatically generates appropriate text based on context.void
setNumberFormat
(String value) Sets the format code for the object.void
setNumberFormatLinked
(boolean value) Sets whether the number format is linked to the cells (so that the number format changes in the labels when it changes in the cells).void
setOrientation
(int value) Sets the text orientation.void
setPosition
(DataLabelPosition value) Sets the position of the data label.void
setSeparator
(String value) Sets an object that represents the separator used for the data labels on a chart.void
setShowBubbleSize
(boolean value) Sets whether to show the bubble size (True to show the bubble size for the data labels on a chart; False to hide).void
setShowCategoryName
(boolean value) Sets whether to show the category name (True to display the category name for the data labels on a chart; False to hide).void
setShowLeaderLines
(boolean value) Sets a Boolean that corresponds to a specified chart's data label values display behavior.void
setShowLegendKey
(boolean value) Sets whether the data label legend key is visible.void
setShowPercentage
(boolean value) Sets whether to display a percentage (True to display the percentage value for the data labels on a chart; False to hide).void
setShowSeriesName
(boolean value) Sets a Boolean to indicate the series name display behavior for the data labels on a chart.void
setShowValue
(boolean value) Sets a Boolean that corresponds to a specified chart's data label values display behavior.从接口继承的方法 java.lang.Iterable
forEach, iterator, spliterator
-
方法详细资料
-
getAutoText
boolean getAutoText()Gets whether the object automatically generates appropriate text based on context. -
setAutoText
void setAutoText(boolean value) Sets whether the object automatically generates appropriate text based on context. -
getCount
int getCount()Returns the number of objects in the collection. -
getFont
IFontFormat getFont()Returns theIFontFormat
object that represents the font of thespecified object. -
getFormat
IChartFormat getFormat()Returns theIChartFormat
object. -
getNumberFormat
String getNumberFormat()Gets the format code for the object. -
setNumberFormat
Sets the format code for the object. -
getNumberFormatLinked
boolean getNumberFormatLinked()Gets whether the number format is linked to the cells (so that the number format changes in the labels when it changes in the cells). -
setNumberFormatLinked
void setNumberFormatLinked(boolean value) Sets whether the number format is linked to the cells (so that the number format changes in the labels when it changes in the cells). -
getParent
ISeries getParent()Returns the parent object for the specified object. -
getPosition
DataLabelPosition getPosition()Gets the position of the data label. -
setPosition
Sets the position of the data label. -
getSeparator
String getSeparator()Gets an object that represents the separator used for the data labels on a chart. -
setSeparator
Sets an object that represents the separator used for the data labels on a chart. -
getShowBubbleSize
boolean getShowBubbleSize()Gets whether to show the bubble size (True to show the bubble size for the data labels on a chart; False to hide). -
setShowBubbleSize
void setShowBubbleSize(boolean value) Sets whether to show the bubble size (True to show the bubble size for the data labels on a chart; False to hide). -
getShowCategoryName
boolean getShowCategoryName()Gets whether to show the category name (True to display the category name for the data labels on a chart; False to hide). -
setShowCategoryName
void setShowCategoryName(boolean value) Sets whether to show the category name (True to display the category name for the data labels on a chart; False to hide). -
getShowLegendKey
boolean getShowLegendKey()Gets whether the data label legend key is visible. -
setShowLegendKey
void setShowLegendKey(boolean value) Sets whether the data label legend key is visible. -
getShowPercentage
boolean getShowPercentage()Gets whether to display a percentage (True to display the percentage value for the data labels on a chart; False to hide). -
setShowPercentage
void setShowPercentage(boolean value) Sets whether to display a percentage (True to display the percentage value for the data labels on a chart; False to hide). -
getShowSeriesName
boolean getShowSeriesName()Gets 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. -
setShowSeriesName
void setShowSeriesName(boolean value) 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. -
getShowValue
boolean getShowValue()Gets a Boolean that corresponds to a specified chart's data label values display behavior. True displays the values. -
setShowValue
void setShowValue(boolean value) Sets a Boolean that corresponds to a specified chart's data label values display behavior. True displays the values. -
getShowLeaderLines
boolean getShowLeaderLines()Gets a Boolean that corresponds to a specified chart's data label values display behavior. True displays the leader lines. -
setShowLeaderLines
void setShowLeaderLines(boolean value) Sets a Boolean that corresponds to a specified chart's data label values display behavior. True displays the leader lines. -
getLeaderLines
IChartLines getLeaderLines()Returns leader lines of the data label. -
get
Returns a single object from the collection.- 参数:
index
- The index number for the object.
-
getOrientation
int getOrientation()Gets the text orientation. -
setOrientation
void setOrientation(int value) Sets the text orientation. Can be an integer value from –90 to 90 degrees.
-