CellControlCollection.AddButton

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)
ParameterTypeDescription
rowInt32Row index of cell.
colInt32Column index of cell.
widthInt32Width of button.
heightInt32Height of button.
textStringButton text.

Return Value

The added button.

See Also


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)
ParameterTypeDescription
cellNameStringName of grid cell.
widthInt32Width of button.
heightInt32Height of button.
textStringButton text.

Return Value

The added button.

See Also


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)
ParameterTypeDescription
rowInt32Row index of cell.
colInt32Column index of cell.
widthInt32Width of button.
heightInt32Height of button.
textStringButton text.
alwaysVisibleBooleanIf the Button should always visible, only work for Cell Control Button.

Return Value

The added button.

See Also


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)
ParameterTypeDescription
cellNameStringName of grid cell.
widthInt32Width of button.
heightInt32Height of button.
textStringButton text.
alwaysVisibleBooleanIf the Button should always visible, only work for Cell Control Button.

Return Value

The added button.

See Also