[]
셀에서 텍스트가 너무 길어서 해당 셀 너비를 초과할 경우, 인접한 셀로 텍스트가 흘러넘치도록 설정할 수 있습니다.
이때 options.allowCellOverflow 속성을 사용하면 됩니다.
다음 코드 샘플은 셀의 정렬을 설정하고, 텍스트가 인접 셀로 넘치도록 허용하는 방법을 보여줍니다.
activeSheet.options.allowCellOverflow = true;
activeSheet.getCell(0,3, GC.Spread.Sheets.SheetArea.viewport).hAlign(GC.Spread.Sheets.HorizontalAlign.left);
activeSheet.getCell(1,3, GC.Spread.Sheets.SheetArea.viewport).hAlign(GC.Spread.Sheets.HorizontalAlign.center);
activeSheet.getCell(2,3, GC.Spread.Sheets.SheetArea.viewport).hAlign(GC.Spread.Sheets.HorizontalAlign.right);
activeSheet.getCell(3,3, GC.Spread.Sheets.SheetArea.viewport).hAlign(GC.Spread.Sheets.HorizontalAlign.general);
activeSheet.getCell(0,3, GC.Spread.Sheets.SheetArea.viewport).text("Data overflows to the right");
activeSheet.getCell(1,3, GC.Spread.Sheets.SheetArea.viewport).text("Data overflows to the left and right");
activeSheet.getCell(2,3, GC.Spread.Sheets.SheetArea.viewport).text("Data overflows to the left");