Add
内容
[
隐藏
]Add(GridValidation)
添加一个GridValidation收藏.
public int Add(GridValidation validation)
| 范围 | 类型 | 描述 |
|---|---|---|
| validation | GridValidation | 一个验证对象。 |
返回值
GridValidation对象索引。
也可以看看
- class GridValidation
- class GridValidationCollection
- 命名空间 Aspose.Cells.GridDesktop.Data
- 部件 Aspose.Cells.GridDesktop
Add()
添加一个GridValidation收藏.
public GridValidation Add()
返回值
GridValidation添加的 GridValidation 实例。
也可以看看
- class GridValidation
- class GridValidationCollection
- 命名空间 Aspose.Cells.GridDesktop.Data
- 部件 Aspose.Cells.GridDesktop
Add(string)
添加一个GridValidation到集合。验证应用于指定的单元格。
public GridValidation Add(string cellname)
| 范围 | 类型 | 描述 |
|---|---|---|
| cellname | String | 单元格的名称。 |
返回值
GridValidation添加的 GridValidation 实例。
也可以看看
- class GridValidation
- class GridValidationCollection
- 命名空间 Aspose.Cells.GridDesktop.Data
- 部件 Aspose.Cells.GridDesktop
Add(int, int)
添加一个GridValidation到集合。验证应用于指定的单元格。
public GridValidation Add(int row, int col)
| 范围 | 类型 | 描述 |
|---|---|---|
| row | Int32 | 单元格的行索引。 |
| col | Int32 | 单元格的列索引。 |
返回值
GridValidation添加的 GridValidation 实例。
也可以看看
- class GridValidation
- class GridValidationCollection
- 命名空间 Aspose.Cells.GridDesktop.Data
- 部件 Aspose.Cells.GridDesktop
Add(string, bool, string)
按单元格名称向指定单元格添加验证。
public void Add(string cellName, bool isRequired, string regEx)
| 范围 | 类型 | 描述 |
|---|---|---|
| cellName | String | 网格单元的名称。 |
| isRequired | Boolean | 指示是否需要单元格值的值。 |
| regEx | String | 正则表达式。 |
也可以看看
Add(int, int, ICustomValidation)
将验证添加到行列索引处的指定单元格。
public void Add(int row, int col, ICustomValidation customValidation)
| 范围 | 类型 | 描述 |
|---|---|---|
| row | Int32 | 单元格的行索引。 |
| col | Int32 | 单元格的列索引。 |
| customValidation | ICustomValidation | 自定义验证对象。 |
也可以看看
- interface ICustomValidation
- class GridValidationCollection
- 命名空间 Aspose.Cells.GridDesktop.Data
- 部件 Aspose.Cells.GridDesktop
Add(int, int, bool, string)
将验证添加到行列索引处的指定单元格。
public void Add(int row, int col, bool isRequired, string regEx)
| 范围 | 类型 | 描述 |
|---|---|---|
| row | Int32 | 单元格的行索引。 |
| col | Int32 | 单元格的列索引。 |
| isRequired | Boolean | 指示是否需要单元格值的值。 |
| regEx | String | 正则表达式。 |
也可以看看
Add(string, ICustomValidation)
按单元格名称向指定单元格添加验证。
public void Add(string cellName, ICustomValidation customValidation)
| 范围 | 类型 | 描述 |
|---|---|---|
| cellName | String | 网格单元的名称。 |
| customValidation | ICustomValidation | 自定义验证对象。 |
也可以看看
- interface ICustomValidation
- class GridValidationCollection
- 命名空间 Aspose.Cells.GridDesktop.Data
- 部件 Aspose.Cells.GridDesktop