## GridCell.SetStyle method

Establece el estilo en la celda. Para mejorar el rendimiento, implemente el método "SetStyle", no implemente la propiedad "Estilo".

```csharp
public void SetStyle(Style value)
```

| Parámetro | Escribe | Descripción |
| --- | --- | --- |
| style | Style | estilo a configurar. |

### Ejemplos

```csharp
[C#]
Style style = sheet.GetCell(0, 0).GetStyle();
style.CellLocked = true;
style.VAlignment = VerticalAlignmentType.Top;
...
sheet.GetCell(0, 0).SetStyle(style);

[Visual Basic]
Dim style As Style =  sheet.GetCell(0,0).GetStyle() 
style.CellLocked = True
style.VAlignment = VerticalAlignmentType.Top
...
sheet.GetCell(0, 0).SetStyle(style)

```

### Ver también

* class [Style](../../../aspose.cells.griddesktop/style)
* class [GridCell](../../gridcell)
* espacio de nombres [Aspose.Cells.GridDesktop.Data](../../gridcell)
* asamblea [Aspose.Cells.GridDesktop](../../../)

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