com.aspose.words
Class ChartNumberFormat

java.lang.Object
    extended by com.aspose.words.ChartNumberFormat

public class ChartNumberFormat 
extends java.lang.Object

Represents number formatting of the parent element.

Property Getters/Setters Summary
java.lang.StringgetFormatCode()
voidsetFormatCode(java.lang.String value)
           Gets or sets the format code applied to a data label.
booleanisLinkedToSource()
voidisLinkedToSource(boolean value)
           Specifies whether the format code is linked to a source cell. Default is true.
 

Property Getters/Setters Detail

getFormatCode/setFormatCode

public java.lang.String getFormatCode() / public void setFormatCode(java.lang.String value)
Gets or sets the format code applied to a data label. Number formatting is used to change the way a value appears in data label and can be used in some very creative ways. The examples of number formats:

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"


isLinkedToSource/isLinkedToSource

public boolean isLinkedToSource() / public void isLinkedToSource(boolean value)
Specifies whether the format code is linked to a source cell. Default is true. The NumberFormat will be reset to general if format code is linked to source.

See Also:
          Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
          Aspose.Words Support Forum - our preferred method of support.