[]
        
(Showing Draft Content)

RangeTemplateCellType

Class RangeTemplateCellType

java.lang.Object
com.grapecity.documents.excel.BaseCellType
com.grapecity.documents.excel.RangeTemplateCellType

public class RangeTemplateCellType extends BaseCellType
RangeTemplate provide a template from a range of referenced worksheet, it can apply to a cell. It will render the cell same as the template and fill data differently. If the param row, col, rowCount, colCount not set, it will use the sheet's usedrange as the range scope.
  • Constructor Details

    • RangeTemplateCellType

      public RangeTemplateCellType()
      Initializes a new instance of the RangeTemplateCellType class.
    • RangeTemplateCellType

      public RangeTemplateCellType(IWorksheet worksheet)
      Use a worksheet and it's used range info to create a RangeTemplateCellType.
      Parameters:
      worksheet - An IWorksheet object that used to be referenced. The sheet could be an individual sheet outside the workbook.
    • RangeTemplateCellType

      public RangeTemplateCellType(IWorksheet worksheet, int row, int column, int rowCount, int columnCount)
      Use a worksheet and specific range to create a RangeTemplateCellType.
      Parameters:
      worksheet - An IWorksheet object that used to be referenced. The sheet could be an individual sheet outside the workbook.
      row - the template scope start row.
      column - the template scope start column.
      rowCount - the template scope row count.
      columnCount - the template scope column count.
    • RangeTemplateCellType

      public RangeTemplateCellType(IRange range)
      Use a specific range to create a RangeTemplateCellType.
      Parameters:
      range - An IRange object that used to be referenced.