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

# Border

## Overview

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

Represents border settings for a single side of a cell or range of cells.

This class declares 1 method for Border 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: `automatic_color`, `color`, `line_style`, `weight`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `line_style` | - | Read | Gets the line style. |
| `color` | - | Read | Gets the color. |
| `weight` | - | Read | Gets the weight. |
| `automatic_color` | - | Read | Gets the automatic color. |

## Methods

| Signature | Description |
|-----------|-------------|
| `__init__(line_style, color, weight, automatic_color)` | Initializes a new instance of Border class. |

## See Also

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