Interface IDataLabel
public interface IDataLabel
Represents the data label on a chart point or trendline.
-
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()Deletes the object.booleanGets whether the object automatically generates appropriate text based on context.Gets the text direction.getFont()Gets theIFontFormatobject that represents the font of the specifiedobject.Returns theIChartFormatobject.Gets the format code for the object.booleanGets whether the number format is linked to the cells (so that the number format changes in the labels when it changes in the cells).intGets 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 label on a chart.booleanGets whether to show the bubble size (True to show the bubble size for the data label on a chart; False to hide).booleanGets whether to show the category name (True to display the category name for the data label on a chart; False to hide).booleanGets whether the data label legend key is visible.booleanGets whether to display the percentage (True to display the percentage value for the data label on a chart; False to hide).booleanGets a Boolean to indicate the series name display behavior for the data labels on a chart.booleanGets a Boolean that corresponds to a specified chart's data label value display behavior.getText()Gets the text for the specified object.Returns theITextFrameobject that contains the text and font styleproperties for the specified data label.voidsetAutoText(boolean value) Sets whether the object automatically generates appropriate text based on context.voidsetDirection(TextDirection value) Sets the text direction.voidsetNumberFormat(String value) Sets the format code for the object.voidsetNumberFormatLinked(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).voidsetOrientation(int value) Sets the text orientation.voidsetPosition(DataLabelPosition value) Sets the position of the data label.voidsetSeparator(String value) Sets an object that represents the separator used for the data label on a chart.voidsetShowBubbleSize(boolean value) Sets whether to show the bubble size (True to show the bubble size for the data label on a chart; False to hide).voidsetShowCategoryName(boolean value) Sets whether to show the category name (True to display the category name for the data label on a chart; False to hide).voidsetShowLegendKey(boolean value) Sets whether the data label legend key is visible.voidsetShowPercentage(boolean value) Sets whether to display the percentage (True to display the percentage value for the data label on a chart; False to hide).voidsetShowSeriesName(boolean value) Sets a Boolean to indicate the series name display behavior for the data label on a chart.voidsetShowValue(boolean value) Sets a Boolean that corresponds to a specified chart's data label value display behavior.voidSets the text for the specified object.
-
Method Details
-
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. -
getFont
IFontFormat getFont()Gets theIFontFormatobject that represents the font of the specifiedobject. -
getFormat
IChartFormat getFormat()Returns theIChartFormatobject. -
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
Object getParent()Returns the parent object for the specified object. The return value type changes fromIPointto object in version 7.0.0.This breaking change will cause a compilation failure or runtime error. The return value could beIPointorITrendline. -
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 label on a chart. -
setSeparator
Sets an object that represents the separator used for the data label on a chart. -
getShowBubbleSize
boolean getShowBubbleSize()Gets whether to show the bubble size (True to show the bubble size for the data label 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 label 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 label 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 label 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 the percentage (True to display the percentage value for the data label on a chart; False to hide). -
setShowPercentage
void setShowPercentage(boolean value) Sets whether to display the percentage (True to display the percentage value for the data label 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 label 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 value display behavior. True displays the values. False to hide. -
setShowValue
void setShowValue(boolean value) Sets a Boolean that corresponds to a specified chart's data label value display behavior. True displays the values. False to hide. -
getText
String getText()Gets the text for the specified object. -
setText
Sets the text for the specified 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. -
getDirection
TextDirection getDirection()Gets the text direction. -
setDirection
Sets the text direction. -
getTextFrame
ITextFrame getTextFrame()Returns theITextFrameobject that contains the text and font styleproperties for the specified data label. -
delete
void delete()Deletes the object.
-