## GridCell.SetStyle method

Imposta lo stile sulla cella. Per migliorare le prestazioni, implementare il metodo "SetStyle", non implementare la proprietà "Style".

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

| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| style | Style | stile da impostare. |

### Esempi

```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)

```

### Guarda anche

* class [Style](../../../aspose.cells.griddesktop/style)
* class [GridCell](../../gridcell)
* spazio dei nomi [Aspose.Cells.GridDesktop.Data](../../gridcell)
* assemblea [Aspose.Cells.GridDesktop](../../../)

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