StringChartValue

StringChartValue class

Represent string value which can be stored in pptx presentation document in two ways:

  1. in cell/cells of workbook related to chart;
  2. as literal value.

getAsCells

NameDescription
getAsCells()Null value assigning is not allowed. Returning value always is not null. Read/write IChartCellCollection.

Returns: ChartCellCollection


getAsLiteralString

NameDescription
getAsLiteralString()Returns or sets value as literal string. Read/write String.

Returns: String


getCellsAddressInWorkbook

NameDescription
getCellsAddressInWorkbook()If DataSourceType property is DataSourceType.Worksheet then this method returns address of the cells in workbook which represent the string data. Otherwise return empty string.

Returns: String


getData

NameDescription
getData()Returns or sets Data object. Read/write Object.

Returns: Object


setAsCells

NameDescription
setAsCells(ChartCellCollection)Null value assigning is not allowed. Returning value always is not null. Read/write IChartCellCollection.

setAsLiteralString

NameDescription
setAsLiteralString(String)Returns or sets value as literal string. Read/write String.

setData

NameDescription
setData(Object)Returns or sets Data object. Read/write Object.

setFromOneCell

NameDescription
setFromOneCell(ChartDataCell)Sets value from specified cell.

Parameters:

NameTypeDescription
cellChartDataCellCell.

toString

NameDescription
toString()Returns string value data. Return null if DataSourceType is false and no string value was assigned.

Returns: String