DataValidation
Visão geral
DataValidation é uma classe em Aspose.Cells FOSS para TypeScript.
Esta classe declara 3 métodos para objetos DataValidation em programas TypeScript. Os métodos disponíveis incluem: addArea, getRanges, toXml. Membros públicos são acessíveis a qualquer aplicação TypeScript após instalar o Aspose.Cells FOSS para o pacote TypeScript. Propriedades: allowBlank, errorMessage, errorStyle, errorTitle, formula1, formula2, e mais 6.
Propriedades
| Nome | Tipo | Acesso | Descrição |
|---|---|---|---|
type | DataValidationType["type"] | Leitura/Escrita | Obtém o tipo. |
operator | `DataValidationType[“operator”] | undefined` | Leitura/Escrita |
formula1 | `string | undefined` | Leitura/Escrita |
formula2 | `string | undefined` | Leitura/Escrita |
allowBlank | boolean | Leitura/Escrita | Obtém o allow blank. |
showDropDown | boolean | Leitura/Escrita | Obtém a exibição da lista suspensa. |
showInputMessage | boolean | Leitura/Escrita | Obtém a mensagem de exibição de entrada. |
inputTitle | `string | undefined` | Leitura/Escrita |
inputMessage | `string | undefined` | Leitura/Escrita |
errorTitle | `string | undefined` | Leitura/Escrita |
errorMessage | `string | undefined` | Leitura/Escrita |
errorStyle | `DataValidationType[“errorStyle”] | undefined` | Leitura/Escrita |
Métodos
| Assinatura | Descrição |
|---|---|
addArea(range: string) | Chama addArea(range) nesta instância de DataValidation. |
getRanges() → CellRange[] | Retorna os intervalos. |
toXml() → string | Chama toXml nesta instância de DataValidation. |