## GridCell.GetStyle method

Obtiene el estilo de celda. Cuando cambie el estilo, debe invocar el método "SetStyle", para establecer el estilo en la celda.

```csharp
public Style GetStyle()
```

### Valor_devuelto

devolver copia del estilo de celda.

### 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 -->
