---
Product: Aspose.Cells
Platform: typescript
Page Type: reference
Canonical URL: https://reference.aspose.org/cells/typescript/CellStyle
---

# CellStyle

## Overview

`CellStyle` is a interface in Aspose.Cells FOSS for Typescript.

CellStyle lets you define alignment, font, colors, and borders for individual cells, supporting rich formatting of spreadsheet content.

Properties: `align`, `bgcolor`, `bold`, `border`, `bottom`, `color`, and 10 more.

## Description

`CellStyle` is an interface in Aspose.Cells FOSS for TypeScript that defines a contract with 0 methods. Classes that implement this interface must provide concrete implementations for all declared operations.

Core capabilities include: `: string`; `: string`; `: string`. These operations enable developers to integrate cellstyle functionality directly into TypeScript applications.

The class also provides the `align` property (gets the align), the `valign` property (gets the valign), the `bgcolor` property (gets the bgcolor).

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `align` | `: string` | Read | Gets the align. |
| `valign` | `: string` | Read | Gets the valign. |
| `bgcolor` | `: string` | Read | Gets the bgcolor. |
| `color` | `: string` | Read | Gets the color. |
| `font` | `: {

    name?: string;

    size?: number;

    bold?: boolean;

    italic?: boolean;

  }` | Read | Gets the font. |
| `name` | `: string` | Read | Gets the name. |
| `size` | `: number` | Read | Gets the size. |
| `bold` | `: boolean` | Read | Gets the bold. |
| `italic` | `: boolean` | Read | Gets the italic. |
| `border` | `: {

    left?: { style?: string; color?: string };

    right?: { style?: string; color?: string };

    top?: { style?: string; color?: string };

    bottom?: { style?: string; color?: string };

  }` | Read | Gets the border. |
| `left` | `: { style?: string; color?: string }` | Read | Gets the left. |
| `style` | `: string` | Read | Gets the style. |
| `color` | `: string` | Read | Gets the color. |
| `right` | `: { style?: string; color?: string }` | Read | Gets the right. |
| `style` | `: string` | Read | Gets the style. |
| `color` | `: string` | Read | Gets the color. |
| `top` | `: { style?: string; color?: string }` | Read | Gets the top. |
| `style` | `: string` | Read | Gets the style. |
| `color` | `: string` | Read | Gets the color. |
| `bottom` | `: { style?: string; color?: string }` | Read | Gets the bottom. |
| `style` | `: string` | Read | Gets the style. |
| `color` | `: string` | Read | Gets the color. |
| `numberFormat` | `: string` | Read | Gets the number format. |

## See Also

- [Aspose.Cells — Enterprise API Reference](https://reference.aspose.com/cells/)