ChartCategory

ChartCategory class

Represents chart categories.

getAsCell

NameDescription
getAsCell()Returns or sets IChartDataCell object. If category is multi-level then used IChartDataCell object for level “0”. Read/write IChartDataCell.

Returns: ChartDataCell


getAsLiteral

NameDescription
getAsLiteral()Returns or sets AsLiteral object. Read/write Object.

Returns: Object


getGroupingLevels

NameDescription
getGroupingLevels()Managed container of the values of the chart category grouping levels. Multi-level category contain more then one grouping level. Grouping levels indexing is zero-based. Read-only IChartCategoryLevelsManager.

Returns: ChartCategoryLevelsManager


getUseCell

NameDescription
getUseCell()If true then AsCell property is actual. In other words, worksheet is used for storing category (this case supports a multi-level category). If false then AsLiteral property is actual. In other words, worksheet is NOT used for storing category (and this case doesn’t support a multi-level categories). Read-only boolean. For change value of this property (for all categories in collection) set new value to ChartCategoryCollection.UseCells property.

Returns: boolean


getValue

NameDescription
getValue()If UseCell is true then this property represents AsCell.Value property. If UseCell is false then this property represents AsLiteral property. Read/write Object.

Returns: Object


remove

NameDescription
remove()Removes category from chart.

Error

ErrorCondition
PptxEditExceptionThrown if category is already removed from chart.

setAsCell

NameDescription
setAsCell(ChartDataCell)Returns or sets IChartDataCell object. If category is multi-level then used IChartDataCell object for level “0”. Read/write IChartDataCell.

setAsLiteral

NameDescription
setAsLiteral(Object)Returns or sets AsLiteral object. Read/write Object.

setValue

NameDescription
setValue(Object)If UseCell is true then this property represents AsCell.Value property. If UseCell is false then this property represents AsLiteral property. Read/write Object.