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.

Result: ChartCellCollection


getAsLiteralString

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

Result: 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.

Result: String


getData

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

Result: Object


getData

NameDescription
getData()Data. Read/write Object.

Result: Object


getDataSourceType

NameDescription
getDataSourceType()Specifies whether AsCell, AsCells, AsLiteralString or AsLiteralDouble property is actual in descendants. In other words it specifies the type of value of the Data property. Read/write DataSourceType. For points in ChartDataPointCollection this property is read-only. In this case for changing value of this property you can use one of the ChartDataPointCollection.DataSourceTypeFor<…> properties.

Result: int


getParent_Immediate

NameDescription
getParent_Immediate()

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.

setData

NameDescription
setData(Object)Data. Read/write Object.

setDataSourceType

NameDescription
setDataSourceType(int)Specifies whether AsCell, AsCells, AsLiteralString or AsLiteralDouble property is actual in descendants. In other words it specifies the type of value of the Data property. Read/write DataSourceType. For points in ChartDataPointCollection this property is read-only. In this case for changing value of this property you can use one of the ChartDataPointCollection.DataSourceTypeFor<…> properties.

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.

Result: String