枚举类的使用
com.grapecity.documents.excel.ValidationType
-
com.grapecity.documents.excel中ValidationType的使用
修饰符和类型方法说明static ValidationType
ValidationType.forValue
(int value) IValidation.getType()
获取一个范围的数据类型验证。static ValidationType
返回带有指定名称的该类的枚举常量。static ValidationType[]
ValidationType.values()
返回包含该枚举类的常量的数组, 顺序与声明这些常量的顺序相同修饰符和类型方法说明void
IValidation.add
(ValidationType type) 为指定范围添加数据验证。void
IValidation.add
(ValidationType type, ValidationAlertStyle alertStyle, ValidationOperator validationOperator, Object formula1, Object formula2) 为指定范围添加数据验证。void
IValidation.setType
(ValidationType value) 设置范围的数据类型验证。