ChartCategory
ChartCategory class
Represents chart categories.
getAsCell
| Name | Description |
|---|---|
| getAsCell () | Returns or sets IChartDataCell object. If category is multi-level then used IChartDataCell object for level “0”. Read/write IChartDataCell. |
Returns: ChartDataCell
getAsLiteral
| Name | Description |
|---|---|
| getAsLiteral () | Returns or sets AsLiteral object. Read/write Object. |
Returns: Object
getGroupingLevels
| Name | Description |
|---|---|
| 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
| Name | Description |
|---|---|
| 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
| Name | Description |
|---|---|
| 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
| Name | Description |
|---|---|
| remove () | Removes category from chart. |
Returns: void
Exception
| Error | Condition |
|---|---|
| PptxEditException | Thrown if category is already removed from chart. |
setAsCell
| Name | Description |
|---|---|
| setAsCell (ChartDataCell) | Returns or sets IChartDataCell object. If category is multi-level then used IChartDataCell object for level “0”. Read/write IChartDataCell. |
Returns: void
setAsLiteral
| Name | Description |
|---|---|
| setAsLiteral (Object) | Returns or sets AsLiteral object. Read/write Object. |
Returns: void
setValue
| Name | Description |
|---|---|
| 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. |
Returns: void