##  Column classe
Représente une seule colonne dans une feuille de calcul.



Le type Column expose les membres suivants :

###  Propriétés
| Propriété| Description|
| :- | :- |
| [index](/cells/python-net/fr/aspose.cells/column/index) | Obtient l'index de cette colonne.|
| [width](/cells/python-net/fr/aspose.cells/column/width) | Obtient et définit la largeur de la colonne en unités de caractères.|
| [group_level](/cells/python-net/fr/aspose.cells/column/group_level) | Obtient le niveau de groupe de la colonne.|
| [is_hidden](/cells/python-net/fr/aspose.cells/column/is_hidden) | Indique si la colonne est masquée.|
| [has_custom_style](/cells/python-net/fr/aspose.cells/column/has_custom_style) | Indique si cette colonne possède des paramètres de style personnalisés (différents de celui par défaut hérité du classeur).|
| [style](/cells/python-net/fr/aspose.cells/column/style) | Obtient le style de cette colonne.|
| [is_collapsed](/cells/python-net/fr/aspose.cells/column/is_collapsed) | si la colonne est réduite|


###  Méthodes
| Méthode| Description|
| :- | :- |
| [`apply_style(self, style, flag)`](/cells/python-net/fr/aspose.cells/column/apply_style/#aspose.cells.style-aspose.cells.styleflag) | Applique des formats pour une colonne entière.|
| [`get_style(self)`](/cells/python-net/fr/aspose.cells/column/get_style/#) | Obtient le style de cette colonne.|
| [`set_style(self, style)`](/cells/python-net/fr/aspose.cells/column/set_style/#aspose.cells.style) | Définit le style de cette colonne.|



###  Exemple

```python
from aspose.cells import BackgroundType, StyleFlag, Workbook
from aspose.pydrawing import Color

# Instantiating a Workbook object
workbook = Workbook()
# Obtaining the reference of the first worksheet
worksheet = workbook.worksheets[0]
style = workbook.create_style()
# Setting the background color to Blue
style.background_color = Color.blue
# Setting the foreground color to Red
style.foreground_color = Color.red
# setting Background Pattern
style.pattern = BackgroundType.DIAGONAL_STRIPE
# New Style Flag
styleFlag = StyleFlag()
# Set All Styles
styleFlag.all = True
# Get first Column
column = worksheet.cells.columns[0]
# Apply Style to first Column
column.apply_style(style, styleFlag)
# Saving the Excel file
workbook.save("book1.xls")

```

###  Voir également
* module [`aspose.cells`](..)
