##  LineFormat classe
Représente tous les paramètres de la ligne.



**Héritage:** [`LineFormat`](/cells/python-net/aspose.cells.drawing/lineformat) → 
[`FillFormat`](/cells/python-net/fr/aspose.cells.drawing/fillformat)



Le type LineFormat expose les membres suivants :

###  Propriétés
| Propriété| Description|
| :- | :- |
| [type](/cells/python-net/fr/aspose.cells.drawing/lineformat/type) | Obtient et définit le type de remplissage.|
| [fill_type](/cells/python-net/fr/aspose.cells.drawing/lineformat/fill_type) | Obtient et définit le type de remplissage|
| [transparency](/cells/python-net/fr/aspose.cells.drawing/lineformat/transparency) |Renvoie ou définit le degré de transparence de la zone sous la forme d'une valeur comprise entre 0,0 (opaque) et 1,0 (clair).|
| [set_type](/cells/python-net/fr/aspose.cells.drawing/lineformat/set_type) | Obtient le type d'ensemble de format de remplissage.|
| [gradient_fill](/cells/python-net/fr/aspose.cells.drawing/lineformat/gradient_fill) | Obtient l'objet [`FillFormat.gradient_fill`](/cells/python-net/fr/aspose.cells.drawing/fillformat#gradient_fill).|
| [texture_fill](/cells/python-net/fr/aspose.cells.drawing/lineformat/texture_fill) | Obtient l'objet [`FillFormat.texture_fill`](/cells/python-net/fr/aspose.cells.drawing/fillformat#texture_fill).|
| [solid_fill](/cells/python-net/fr/aspose.cells.drawing/lineformat/solid_fill) | Obtient l'objet [`FillFormat.solid_fill`](/cells/python-net/fr/aspose.cells.drawing/fillformat#solid_fill).|
| [pattern_fill](/cells/python-net/fr/aspose.cells.drawing/lineformat/pattern_fill) | Obtient l'objet [`FillFormat.pattern_fill`](/cells/python-net/fr/aspose.cells.drawing/fillformat#pattern_fill).|
| [gradient_color_type](/cells/python-net/fr/aspose.cells.drawing/lineformat/gradient_color_type) | Renvoie le type de couleur de dégradé pour le remplissage spécifié.|
| [gradient_style](/cells/python-net/fr/aspose.cells.drawing/lineformat/gradient_style) | Renvoie le style de dégradé pour le remplissage spécifié.|
| [gradient_color1](/cells/python-net/fr/aspose.cells.drawing/lineformat/gradient_color1) | Renvoie la couleur de dégradé 1 pour le remplissage spécifié.|
| [gradient_color2](/cells/python-net/fr/aspose.cells.drawing/lineformat/gradient_color2) |Renvoie la couleur de dégradé 2 pour le remplissage spécifié.|
| [gradient_degree](/cells/python-net/fr/aspose.cells.drawing/lineformat/gradient_degree) | Renvoie le degré de dégradé pour le remplissage spécifié.<br/> S'applique uniquement à Excel 2007.|
| [gradient_variant](/cells/python-net/fr/aspose.cells.drawing/lineformat/gradient_variant) | Renvoie la variante de dégradé pour le remplissage spécifié.<br/> S'applique uniquement à Excel 2007.|
| [preset_color](/cells/python-net/fr/aspose.cells.drawing/lineformat/preset_color) | Renvoie la couleur prédéfinie du dégradé pour le remplissage spécifié.|
| [texture](/cells/python-net/fr/aspose.cells.drawing/lineformat/texture) | Représente le type de texture pour le remplissage spécifié.|
| [pattern](/cells/python-net/fr/aspose.cells.drawing/lineformat/pattern) | Représente le modèle d'affichage d'une zone.|
| [picture_format_type](/cells/python-net/fr/aspose.cells.drawing/lineformat/picture_format_type) | Obtient et définit le type de format d'image.|
| [scale](/cells/python-net/fr/aspose.cells.drawing/lineformat/scale) | Obtient et définit l'échelle du format de l'image.|
| [image_data](/cells/python-net/fr/aspose.cells.drawing/lineformat/image_data) | Obtient et définit les données de l'image.|
| [compound_type](/cells/python-net/fr/aspose.cells.drawing/lineformat/compound_type) | Spécifie le type de composé de ligne.|
| [dash_style](/cells/python-net/fr/aspose.cells.drawing/lineformat/dash_style) | Spécifie le type de tiret de ligne.|
| [cap_type](/cells/python-net/fr/aspose.cells.drawing/lineformat/cap_type) | Spécifie les majuscules de fin.|
| [join_type](/cells/python-net/fr/aspose.cells.drawing/lineformat/join_type) | Spécifie le type de jointure de ligne.|
| [begin_arrowhead_style](/cells/python-net/fr/aspose.cells.drawing/lineformat/begin_arrowhead_style) | Obtient et définit le type de flèche de début de la ligne.|
| [begin_arrowhead_width](/cells/python-net/fr/aspose.cells.drawing/lineformat/begin_arrowhead_width) | Obtient et définit le type de largeur de la flèche de début de la ligne.|
| [begin_arrowhead_length](/cells/python-net/fr/aspose.cells.drawing/lineformat/begin_arrowhead_length) | Obtient et définit le type de longueur de la flèche de début de la ligne.|
| [end_arrowhead_style](/cells/python-net/fr/aspose.cells.drawing/lineformat/end_arrowhead_style) | Obtient et définit le type de flèche de fin de la ligne.|
| [end_arrowhead_width](/cells/python-net/fr/aspose.cells.drawing/lineformat/end_arrowhead_width) | Obtient et définit le type de largeur de la flèche de fin de la ligne.|
| [end_arrowhead_length](/cells/python-net/fr/aspose.cells.drawing/lineformat/end_arrowhead_length) | Obtient et définit le type de longueur de la flèche de fin de la ligne.|
| [weight](/cells/python-net/fr/aspose.cells.drawing/lineformat/weight) |Obtient ou définit le poids de la ligne en unité de points.|


###  Méthodes
| Méthode| Description|
| :- | :- |
| [`set_two_color_gradient(self, color1, color2, style, variant)`](/cells/python-net/fr/aspose.cells.drawing/lineformat/set_two_color_gradient/#aspose.pydrawing.color-aspose.pydrawing.color-aspose.cells.drawing.gradientstyletype-int) | Définit le remplissage spécifié sur un dégradé à deux couleurs.<br/> S'applique uniquement à Excel 2007.|
| [`set_two_color_gradient(self, color1, transparency1, color2, transparency2, style, variant)`](/cells/python-net/fr/aspose.cells.drawing/lineformat/set_two_color_gradient/#aspose.pydrawing.color-float-aspose.pydrawing.color-float-aspose.cells.drawing.gradientstyletype-int) | Définit le remplissage spécifié sur un dégradé à deux couleurs.<br/> S'applique uniquement à Excel 2007.|
| [`set_one_color_gradient(self, color, degree, style, variant)`](/cells/python-net/fr/aspose.cells.drawing/lineformat/set_one_color_gradient/#aspose.pydrawing.color-float-aspose.cells.drawing.gradientstyletype-int) | Définit le remplissage spécifié sur un dégradé d'une couleur.<br/> S'applique uniquement à Excel 2007.|
| [`set_preset_color_gradient(self, preset_color, style, variant)`](/cells/python-net/fr/aspose.cells.drawing/lineformat/set_preset_color_gradient/#aspose.cells.drawing.gradientpresettype-aspose.cells.drawing.gradientstyletype-int) | Définit le remplissage spécifié sur un dégradé de couleurs prédéfini.<br/> S'applique uniquement à Excel 2007.|



###  Exemple

```python
from aspose.cells import Workbook

# Instantiating a Workbook object
workbook = Workbook()
shapes = workbook.worksheets[0].shapes
shape = shapes.add_rectangle(1, 0, 1, 0, 50, 100)
lineFmt = shape.line

```

###  Voir également
* module [`aspose.cells.drawing`](..)
* classe [`FillFormat`](/cells/python-net/fr/aspose.cells.drawing/fillformat)
* classe [`LineFormat`](/cells/python-net/fr/aspose.cells.drawing/lineformat)
