DataValidation
DataValidation
概述
DataValidation 是 Aspose.Cells FOSS 中用于 TypeScript 的类。
此类在 TypeScript 程序中为 DataValidation 对象声明了 3 个方法。可用的方法包括:addArea、getRanges、toXml。在安装了用于 TypeScript 的 Aspose.Cells FOSS 包之后,公共成员对任何 TypeScript 应用程序均可访问。属性:allowBlank、errorMessage、errorStyle、errorTitle、formula1、formula2,以及另外 6 项。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
type | DataValidationType["type"] | 读写 | 获取类型。 |
operator | `DataValidationType[“operator”] | undefined` | 读写 |
formula1 | `string | undefined` | 读写 |
formula2 | `string | undefined` | 读写 |
allowBlank | boolean | 读写 | 获取允许空白。 |
showDropDown | boolean | 读写 | 获取显示下拉列表。 |
showInputMessage | boolean | 读写 | 获取显示输入消息。 |
inputTitle | `string | undefined` | 读写 |
inputMessage | `string | undefined` | 读写 |
errorTitle | `string | undefined` | 读写 |
errorMessage | `string | undefined` | 读写 |
errorStyle | `DataValidationType[“errorStyle”] | undefined` | 读写 |
方法
| 签名 | 描述 |
|---|---|
addArea(range: string) | 在此 DataValidation 实例上调用 addArea(range)。 |
getRanges() → CellRange[] | 返回范围。 |
toXml() → string | 在此 DataValidation 实例上调用 toXml。 |