Skip to main content

Метод Cell.setCellProperties

Позволяет установить свойства ячейки CellProperties.

Пример​


Table firstSheet = document.getBlocks().getTable(0);
Cell cell = firstSheet.getCell("B2");
CellProperties cellProperties = cell.getCellProperties();
cellProperties.verticalAlignment = VerticalAlignment.Center;
cell.setCellProperties(cellProperties);