CellControlCollection.AddButton
Contents
[
Hide
]AddButton(int, int, int, int, string)
Adds a button to a specified cell at row column index.
public Button AddButton(int row, int col, int width, int height, string text)
Parameter | Type | Description |
---|---|---|
row | Int32 | Row index of cell. |
col | Int32 | Column index of cell. |
width | Int32 | Width of button. |
height | Int32 | Height of button. |
text | String | Button text. |
Return Value
The added button.
See Also
- class Button
- class CellControlCollection
- namespace Aspose.Cells.GridDesktop
- assembly Aspose.Cells.GridDesktop
AddButton(string, int, int, string)
Adds a button to a specified cell by cell name.
public Button AddButton(string cellName, int width, int height, string text)
Parameter | Type | Description |
---|---|---|
cellName | String | Name of grid cell. |
width | Int32 | Width of button. |
height | Int32 | Height of button. |
text | String | Button text. |
Return Value
The added button.
See Also
- class Button
- class CellControlCollection
- namespace Aspose.Cells.GridDesktop
- assembly Aspose.Cells.GridDesktop
AddButton(int, int, int, int, string, bool)
Adds a button to a specified cell at row column index.
public Button AddButton(int row, int col, int width, int height, string text, bool alwaysVisible)
Parameter | Type | Description |
---|---|---|
row | Int32 | Row index of cell. |
col | Int32 | Column index of cell. |
width | Int32 | Width of button. |
height | Int32 | Height of button. |
text | String | Button text. |
alwaysVisible | Boolean | If the Button should always visible, only work for Cell Control Button. |
Return Value
The added button.
See Also
- class Button
- class CellControlCollection
- namespace Aspose.Cells.GridDesktop
- assembly Aspose.Cells.GridDesktop
AddButton(string, int, int, string, bool)
Adds a button to a specified cell by cell name.
public Button AddButton(string cellName, int width, int height, string text, bool alwaysVisible)
Parameter | Type | Description |
---|---|---|
cellName | String | Name of grid cell. |
width | Int32 | Width of button. |
height | Int32 | Height of button. |
text | String | Button text. |
alwaysVisible | Boolean | If the Button should always visible, only work for Cell Control Button. |
Return Value
The added button.
See Also
- class Button
- class CellControlCollection
- namespace Aspose.Cells.GridDesktop
- assembly Aspose.Cells.GridDesktop