public class ChartNumberFormat
extends java.lang.Object
To learn more, visit the Working with Charts documentation article.
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getFormatCode()
Gets the format code applied to a data label.
|
boolean |
isLinkedToSource()
Specifies whether the format code is linked to a source cell.
|
void |
isLinkedToSource(boolean value)
Specifies whether the format code is linked to a source cell.
|
void |
setFormatCode(java.lang.String value)
Sets the format code applied to a data label.
|
public java.lang.String getFormatCode()
Number - "#,##0.00"
Currency - "\"$\"#,##0.00"
Time - "[$-x-systime]h:mm:ss AM/PM"
Date - "d/mm/yyyy"
Percentage - "0.00%"
Fraction - "# ?/?"
Scientific - "0.00E+00"
Text - "@"
Accounting - "_-\"$\"* #,##0.00_-;-\"$\"* #,##0.00_-;_-\"$\"* \"-\"??_-;_-@_-"
Custom with color - "[Red]-#,##0.0"
public void setFormatCode(java.lang.String value)
Number - "#,##0.00"
Currency - "\"$\"#,##0.00"
Time - "[$-x-systime]h:mm:ss AM/PM"
Date - "d/mm/yyyy"
Percentage - "0.00%"
Fraction - "# ?/?"
Scientific - "0.00E+00"
Text - "@"
Accounting - "_-\"$\"* #,##0.00_-;-\"$\"* #,##0.00_-;_-\"$\"* \"-\"??_-;_-@_-"
Custom with color - "[Red]-#,##0.0"
value - The format code applied to a data label.public boolean isLinkedToSource()
boolean value.public void isLinkedToSource(boolean value)
value - The corresponding boolean value.