# Deprecated API

## Contents

- Deprecated Methods

- Deprecated Methods
  Method and Description
  com.smartxls.BookPivotArea.addField(BookPivotField) replaced by BookPivotRange.addField
  com.smartxls.BookPivotRangeModel.getActivePivotRange() relaced by workbook.getActivePivotRange(...)
  com.smartxls.BookPivotRange.getField(String) replaced by BookPivotRange.addField
  com.smartxls.WorkBook.getPivotModel() relaced by workbook.addPivotRange(...) and workbook.getActivePivotRange(...)
  com.smartxls.BookPivotRangeModel.refreshRange(BookPivotRange) relaced by BookPivotRange.refreshRange()
  com.smartxls.BookPivotRangeModel.setDataQuery(SXQuery) relaced by workbook.addPivotRange(com.smartxls.data.SXQuery query, int dstSheet, int dstRow1, int dstCol1)
  com.smartxls.WorkBook.setDataValidationForCell(int, int, DataValidation) used for fast adding cell only,should avoid multi-ranges/overlaped cell(range) adding.
  com.smartxls.BookPivotRangeModel.setList(String) relaced by workbook.addPivotRange(...)
  com.smartxls.BookPivotRangeModel.setLocation(int, int, int) relaced by workbook.addPivotRange(...)