public class Floor extends Area
Example
//Instantiate the License class
License license = new License();
//Pass only the name of the license file embedded in the assembly
license.setLicense("Aspose.Cells.lic");
//Instantiate the workbook object
Workbook workbook = new Workbook();
//Get cells collection
Cells cells = workbook.getWorksheets().get(0).getCells();
//Put values in cells
cells.get("A1").putValue(1);
cells.get("A2").putValue(2);
cells.get("A3").putValue(3);
//get charts colletion
ChartCollection charts = workbook.getWorksheets().get(0).getCharts();
//add a new chart
int index = charts.add(ChartType.COLUMN_3_D_STACKED, 5, 0, 15, 5);
//get the newly added chart
Chart chart = charts.get(index);
//set charts nseries
chart.getNSeries().add("A1:A3", true);
//Show data labels
chart.getNSeries().get(0).getDataLabels().setShowValue(true);
//Get chart's floor
Floor floor = chart.getFloor();
//set floor's border as red
floor.getBorder().setColor(com.aspose.cells.Color.getRed());
//set fill format
floor.getFillFormat().setPresetColorGradient(GradientPresetType.CALM_WATER, GradientStyleType.DIAGONAL_DOWN, 2);
//save the file
workbook.save("dest.xls");
| Modifier and Type | Method and Description |
|---|---|
Line |
getBorder()
Gets the border
Line. |
void |
setBorder(Line value)
Sets the border
Line. |
getBackgroundColor, getFillFormat, getForegroundColor, getFormatting, getInvertIfNegative, getTransparency, setBackgroundColor, setForegroundColor, setFormatting, setInvertIfNegative, setTransparencySee Also:
Aspose.Cells Documentation - the home page for the Aspose.Cells Product Documentation.
Aspose.Cells Support Forum - our preferred method of support.
We guarantee a prompt response to any inquiry!
© Aspose Pty Ltd 2003-2025. All Rights Reserved.