## GridCell.SetStyle method

Stili hücreye ayarlar. Performansı artırmak için "SetStyle" yöntemini uygulayın, "Style" özelliğini uygulamayın.

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

| Parametre | Tip | Tanım |
| --- | --- | --- |
| style | Style | ayarlanacak stil. |

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