## GridCell.GetStyle method

Hücre stilini alır. Stili değiştirirken, stili hücreye ayarlamak için "SetStyle" yöntemini, çağırmalısınız.

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

### Geri dönüş değeri

hücre stilinin kopyasını döndürür.

### Örnekler

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

```

### Ayrıca bakınız

* class [Style](../../../aspose.cells.griddesktop/style)
* class [GridCell](../../gridcell)
* ad alanı [Aspose.Cells.GridDesktop.Data](../../gridcell)
* toplantı [Aspose.Cells.GridDesktop](../../../)

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