Namespace EasyXLS.Charts
Class ExcelDataLabels
System.Object
- All Implemented Interfaces:
IAlignDrawingObject,IEffectDrawingObject,IFontDrawingObject
This class stores the data labels settings like label options, number format, fill settings, line settings, (font settings), 3D-format settings,
alignment settings and shadow settings.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSystem.StringReturns the label position.System.StringReturns the data label number format.System.StringReturns the label separator.boolReturns a value representing the visibility of the legend key.boolReturns true, if the number format of the labels is the same as the number format of the data source, false otherwise.voidsetLabelPosition(System.String labelPosition) Sets the label position.voidsetNumberFormat(System.String numberFormat) Sets the data label number format.voidsetNumberFormatLinked(bool isNumberFormatLinked) Sets if the number format of the data label is linked to the number format of the data source.voidsetSeparator(System.String separator) Sets the label separator.voidsetShowBubbleSize(bool show) Sets if the bubble size is visible in the data label.voidsetShowCategoryName(bool show) Sets if the category name is visible in the data label.voidsetShowLeaderLines(bool show) Sets if the leader lines are visible.voidsetShowLegendKeyNextToLabel(bool value) Sets the visibility of the legend key next to label of the series.voidsetShowPercentage(bool show) Sets if the percentage is visible in the data label.voidsetShowSeriesName(bool show) Sets if the series name is visible in the data label.voidsetShowValue(bool show) Sets if the value is visible in the data label.boolReturns true if the bubble size is shown in the data label, false otherwise.boolReturns true if the category name is shown in the data label, false otherwise.boolReturns true if the leader lines are shown, false otherwise.boolReturns true if the percentage is shown in the data label, false otherwise.boolReturns true if the series name is shown in the data label, false otherwise.boolReturns true if the value is shown in the data label, false otherwise.Methods inherited from class EasyXLS.Drawings.AlignDrawingObject
getAlignmentFormat, setAlignmentFormatMethods inherited from class EasyXLS.Drawings.FontDrawingObject
getFontFormat, setFontFormatMethods inherited from class EasyXLS.Drawings.EffectDrawingObject
get3DFormat, set3DFormatMethods inherited from class EasyXLS.Drawings.FillDrawingObject
getFillFormat, setFillFormatMethods inherited from class EasyXLS.Drawings.LineDrawingObject
getLineColorFormat, getLineStyleFormat, getShadowFormat, setLineColorFormat, setLineStyleFormat, setShadowFormatMethods inherited from class EasyXLS.Drawings.DrawingObject
getHeight, getHorizontalOffset, getRelativeHeight, getRelativeHorizontalOffset, getRelativeVerticalOffset, getRelativeWidth, getVerticalOffset, getWidth, setLeftUpperOffset, setRelativeLeftUpperOffset, setRelativeSize, setSizeMethods inherited from class System.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ExcelDataLabels
public ExcelDataLabels()Defines an instance of the data label.
-
-
Method Details
-
ShowSeriesName
public bool ShowSeriesName()Returns true if the series name is shown in the data label, false otherwise.- Returns:
- returns true if the series name is shown in the data label, false otherwise
- See Also:
-
setShowSeriesName
public void setShowSeriesName(bool show) Sets if the series name is visible in the data label.- Parameters:
show- true if the series name is shown in the data label, false otherwise- See Also:
-
ShowCategoryName
public bool ShowCategoryName()Returns true if the category name is shown in the data label, false otherwise.- Returns:
- returns true if the category name is shown in the data label, false otherwise
- See Also:
-
setShowCategoryName
public void setShowCategoryName(bool show) Sets if the category name is visible in the data label.- Parameters:
show- true if the category name is shown in the data label, false otherwise- See Also:
-
ShowValue
public bool ShowValue()Returns true if the value is shown in the data label, false otherwise.- Returns:
- returns true if the value is shown in the data label, false otherwise
- See Also:
-
setShowValue
public void setShowValue(bool show) Sets if the value is visible in the data label.- Parameters:
show- true if the value is shown in the data label, false otherwise- See Also:
-
ShowPercentage
public bool ShowPercentage()Returns true if the percentage is shown in the data label, false otherwise. It is valid only for pie charts.- Returns:
- returns true if the percentage is shown in the data label, false otherwise
- See Also:
-
setShowPercentage
public void setShowPercentage(bool show) Sets if the percentage is visible in the data label. It is valid only for pie charts.- Parameters:
show- true if the percentage is shown in the data label, false otherwise- See Also:
-
ShowBubbleSize
public bool ShowBubbleSize()Returns true if the bubble size is shown in the data label, false otherwise. It is valid only for bubble charts.- Returns:
- returns true if the bubble size is shown in the data label, false otherwise
- See Also:
-
setShowBubbleSize
public void setShowBubbleSize(bool show) Sets if the bubble size is visible in the data label. It is valid only for pie charts.- Parameters:
show- true if the bubble size is shown in the data label, false otherwise- See Also:
-
ShowLeaderLines
public bool ShowLeaderLines()Returns true if the leader lines are shown, false otherwise.- Returns:
- returns true if the leader lines are shown, false otherwise
- See Also:
-
setShowLeaderLines
public void setShowLeaderLines(bool show) Sets if the leader lines are visible.- Parameters:
show- true if the leader lines are shown, false otherwise- See Also:
-
getLabelPosition
public System.String getLabelPosition()Returns the label position. Possible values are available inChartclass.- Returns:
- the label position
- See Also:
-
setLabelPosition
public void setLabelPosition(System.String labelPosition) Sets the label position. Possible values are available inChartclass.- Parameters:
labelPosition- the label position- See Also:
-
getShowLegendKeyNextToLabel
public bool getShowLegendKeyNextToLabel()Returns a value representing the visibility of the legend key.- Returns:
- the visibility of the legend key
- See Also:
-
setShowLegendKeyNextToLabel
public void setShowLegendKeyNextToLabel(bool value) Sets the visibility of the legend key next to label of the series.- Parameters:
value- the new value of the legend key visibility- See Also:
-
getSeparator
public System.String getSeparator()Returns the label separator. Preset values are available inChartclass.- Returns:
- the label separator
- See Also:
-
setSeparator
public void setSeparator(System.String separator) Sets the label separator. Preset values are available inChartclass.- Parameters:
separator- the label separator- See Also:
-
getNumberFormat
public System.String getNumberFormat()Returns the data label number format. Possible values are available inFormatclass.- Returns:
- the data label number format
- See Also:
-
setNumberFormat
public void setNumberFormat(System.String numberFormat) Sets the data label number format. Possible values are available inFormatclass.- Parameters:
numberFormat- the data label number format- See Also:
-
setNumberFormatLinked
public void setNumberFormatLinked(bool isNumberFormatLinked) Sets if the number format of the data label is linked to the number format of the data source.- Parameters:
isNumberFormatLinked- true, if the number format of the labels is the same as the number format of the data source, false otherwise- See Also:
-
IsNumberFormatLinked
public bool IsNumberFormatLinked()Returns true, if the number format of the labels is the same as the number format of the data source, false otherwise.- Returns:
- true, if the number format of the labels is the same as the number format of the data source, false otherwise
- See Also:
-