[]
        
首页
开发者学堂
文档
论坛
市场
生态机会
活动
立即试用
(Showing Draft Content)

SpecialCellsValue

Class SpecialCellsValue

java.lang.Object
com.grapecity.documents.excel.SpecialCellsValue

public class SpecialCellsValue extends Object
指定结果中要包含的具有特定值类型的单元格。

用作 IRange.specialCells(SpecialCellType,SpecialCellsValue) 的第二个参数;当单元格类型为 SpecialCellType.Constants 或 SpecialCellType.Formulas 时,可按值类型(数字、文本、逻辑值或错误)进一步筛选单元格。


 worksheet.getRange("A1").setValue("Text");
 worksheet.getRange("B1").setValue(100);
 worksheet.getRange("C1").setValue(true);
 
 // Find cells containing numeric constants
 IRange numberCells = worksheet.getCells().specialCells(SpecialCellType.Constants, SpecialCellsValue.Numbers);
 
 // Find cells containing text constants
 IRange textCells = worksheet.getCells().specialCells(SpecialCellType.Constants, SpecialCellsValue.TextValues);
 
  • Field Details

    • Errors

      public static final SpecialCellsValue Errors
      包含错误的单元格。
    • Logical

      public static final SpecialCellsValue Logical
      具有逻辑值的单元格。
    • Numbers

      public static final SpecialCellsValue Numbers
      含有数值的单元格。
    • TextValues

      public static final SpecialCellsValue TextValues
      包含文本的单元格。
  • Constructor Details

    • SpecialCellsValue

      public SpecialCellsValue()