Add
Innehåll
[
Dölj
]Add(GridValidation)
Lägg till enGridValidation till samlingen.
public int Add(GridValidation validation)
| Parameter | Typ | Beskrivning |
|---|---|---|
| validation | GridValidation | Ett valideringsobjekt. |
Returvärde
GridValidation objektindex.
Se även
- class GridValidation
- class GridValidationCollection
- namnutrymme Aspose.Cells.GridDesktop.Data
- hopsättning Aspose.Cells.GridDesktop
Add()
Lägg till enGridValidation till samlingen.
public GridValidation Add()
Returvärde
GridValidation den tillagda GridValidation-instansen.
Se även
- class GridValidation
- class GridValidationCollection
- namnutrymme Aspose.Cells.GridDesktop.Data
- hopsättning Aspose.Cells.GridDesktop
Add(string)
Lägg till enGridValidation till samlingen.valideringen tillämpas på den specifika cellen.
public GridValidation Add(string cellname)
| Parameter | Typ | Beskrivning |
|---|---|---|
| cellname | String | cellens namn. |
Returvärde
GridValidation den tillagda GridValidation-instansen.
Se även
- class GridValidation
- class GridValidationCollection
- namnutrymme Aspose.Cells.GridDesktop.Data
- hopsättning Aspose.Cells.GridDesktop
Add(int, int)
Lägg till enGridValidation till samlingen.valideringen tillämpas på den specifika cellen.
public GridValidation Add(int row, int col)
| Parameter | Typ | Beskrivning |
|---|---|---|
| row | Int32 | Radindex för cell. |
| col | Int32 | Kolumnindex för cellen. |
Returvärde
GridValidation den tillagda GridValidation-instansen.
Se även
- class GridValidation
- class GridValidationCollection
- namnutrymme Aspose.Cells.GridDesktop.Data
- hopsättning Aspose.Cells.GridDesktop
Add(string, bool, string)
Lägger till en validering till en specificerad cell efter cellnamn.
public void Add(string cellName, bool isRequired, string regEx)
| Parameter | Typ | Beskrivning |
|---|---|---|
| cellName | String | Namn på rutnätscellen. |
| isRequired | Boolean | Värde som anger om cellvärde krävs. |
| regEx | String | Vanligt uttryck. |
Se även
- class GridValidationCollection
- namnutrymme Aspose.Cells.GridDesktop.Data
- hopsättning Aspose.Cells.GridDesktop
Add(int, int, ICustomValidation)
Lägger till en validering till en specificerad cell vid radkolumnindex.
public void Add(int row, int col, ICustomValidation customValidation)
| Parameter | Typ | Beskrivning |
|---|---|---|
| row | Int32 | Radindex för cell. |
| col | Int32 | Kolumnindex för cellen. |
| customValidation | ICustomValidation | Anpassat valideringsobjekt. |
Se även
- interface ICustomValidation
- class GridValidationCollection
- namnutrymme Aspose.Cells.GridDesktop.Data
- hopsättning Aspose.Cells.GridDesktop
Add(int, int, bool, string)
Lägger till en validering till en specificerad cell vid radkolumnindex.
public void Add(int row, int col, bool isRequired, string regEx)
| Parameter | Typ | Beskrivning |
|---|---|---|
| row | Int32 | Radindex för cell. |
| col | Int32 | Kolumnindex för cellen. |
| isRequired | Boolean | Värde som anger om cellvärde krävs. |
| regEx | String | Vanligt uttryck. |
Se även
- class GridValidationCollection
- namnutrymme Aspose.Cells.GridDesktop.Data
- hopsättning Aspose.Cells.GridDesktop
Add(string, ICustomValidation)
Lägger till en validering till en specificerad cell efter cellnamn.
public void Add(string cellName, ICustomValidation customValidation)
| Parameter | Typ | Beskrivning |
|---|---|---|
| cellName | String | Namn på rutnätscellen. |
| customValidation | ICustomValidation | Anpassat valideringsobjekt. |
Se även
- interface ICustomValidation
- class GridValidationCollection
- namnutrymme Aspose.Cells.GridDesktop.Data
- hopsättning Aspose.Cells.GridDesktop