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

# Borders

## Overview

`Borders` is a class in Aspose.Cells FOSS for Python.

Represents border settings for all sides of a cell or range of cells.

This class declares 1 method for Borders objects in Python programs.
Available methods include: `__init__`.
Public members are accessible to any Python application after installing the Aspose.Cells FOSS for Python package.
Properties: `bottom`, `diagonal`, `diagonal_down`, `diagonal_up`, `left`, `right`, and 1 more.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `top` | - | Read | Gets the top. |
| `bottom` | - | Read | Gets the bottom. |
| `left` | - | Read | Gets the left. |
| `right` | - | Read | Gets the right. |
| `diagonal_up` | - | Read | Gets the diagonal up. |
| `diagonal_down` | - | Read | Gets the diagonal down. |
| `diagonal` | - | Read | Gets the diagonal. |

## Methods

| Signature | Description |
|-----------|-------------|
| `__init__()` | Initializes a new instance of Borders class. |

## See Also

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