## AddButton(int, int, int, int, string) {#addbutton}

Agrega un botón a una celda específica en el índice de columna de fila.

```csharp
public Button AddButton(int row, int col, int width, int height, string text)
```

| Parámetro | Escribe | Descripción |
| --- | --- | --- |
| row | Int32 | Índice de fila de la celda. |
| col | Int32 | Índice de columna de la celda. |
| width | Int32 | Ancho del botón. |
| height | Int32 | Altura del botón. |
| text | String | Botón de texto. |

### Valor_devuelto

El botón añadido.

### Ver también

* class [Button](../../button)
* class [CellControlCollection](../../cellcontrolcollection)
* espacio de nombres [Aspose.Cells.GridDesktop](../../cellcontrolcollection)
* asamblea [Aspose.Cells.GridDesktop](../../../)

---

## AddButton(string, int, int, string) {#addbutton_2}

Agrega un botón a una celda específica por nombre de celda.

```csharp
public Button AddButton(string cellName, int width, int height, string text)
```

| Parámetro | Escribe | Descripción |
| --- | --- | --- |
| cellName | String | Nombre de la celda de la cuadrícula. |
| width | Int32 | Ancho del botón. |
| height | Int32 | Altura del botón. |
| text | String | Botón de texto. |

### Valor_devuelto

El botón añadido.

### Ver también

* class [Button](../../button)
* class [CellControlCollection](../../cellcontrolcollection)
* espacio de nombres [Aspose.Cells.GridDesktop](../../cellcontrolcollection)
* asamblea [Aspose.Cells.GridDesktop](../../../)

---

## AddButton(int, int, int, int, string, bool) {#addbutton_1}

Agrega un botón a una celda específica en el índice de columna de fila.

```csharp
public Button AddButton(int row, int col, int width, int height, string text, bool alwaysVisible)
```

| Parámetro | Escribe | Descripción |
| --- | --- | --- |
| row | Int32 | Índice de fila de la celda. |
| col | Int32 | Índice de columna de la celda. |
| width | Int32 | Ancho del botón. |
| height | Int32 | Altura del botón. |
| text | String | Botón de texto. |
| alwaysVisible | Boolean | Si el botón debe estar siempre visible, solo funciona para el botón de control de celda. |

### Valor_devuelto

El botón añadido.

### Ver también

* class [Button](../../button)
* class [CellControlCollection](../../cellcontrolcollection)
* espacio de nombres [Aspose.Cells.GridDesktop](../../cellcontrolcollection)
* asamblea [Aspose.Cells.GridDesktop](../../../)

---

## AddButton(string, int, int, string, bool) {#addbutton_3}

Agrega un botón a una celda específica por nombre de celda.

```csharp
public Button AddButton(string cellName, int width, int height, string text, bool alwaysVisible)
```

| Parámetro | Escribe | Descripción |
| --- | --- | --- |
| cellName | String | Nombre de la celda de la cuadrícula. |
| width | Int32 | Ancho del botón. |
| height | Int32 | Altura del botón. |
| text | String | Botón de texto. |
| alwaysVisible | Boolean | Si el botón debe estar siempre visible, solo funciona para el botón de control de celda. |

### Valor_devuelto

El botón añadido.

### Ver también

* class [Button](../../button)
* class [CellControlCollection](../../cellcontrolcollection)
* espacio de nombres [Aspose.Cells.GridDesktop](../../cellcontrolcollection)
* asamblea [Aspose.Cells.GridDesktop](../../../)

<!-- DO NOT EDIT: generated by xmldocmd for Aspose.Cells.GridDesktop.dll -->
