style

Vue de l’ensemble

‘Style’ est une classe dans Aspose.Cells FOSS pour .NET.

Il représente une facade de style cellulaire mutable qui peut être appliquée à une ou plusieurs cellules. var workbook = new Workbook(); var cell = workbooks.Worksheets[0].Cells[“C3”]; var style = cell.GetStyle(), style.Font.IsBold = true; style .NumberFormat = “$#,##0.00”; style..HorizontalAlignment = HorizontalAlignmentType.Center; cell..SetStiel(style) ;

Cette classe fournit 4 méthodes pour travailler avec des objets Style dans les programmes .NET. Les méthodologies disponibles comprennent: ‘Copy’, ‘Equals’, GetHashCode', ‘Style'. Tous les membres exportés sont accessibles à n'importe quelle application .Net après l'installation de l’Aspose.Cells FOSS pour le package .net. Propriétés: BackgroundColor, Mots,Custom` et plus de 13.

Description

‘Style’ est une classe dans la bibliothèque Aspose.Cells FOSS pour .NET qui expose 3 méthodes et 19 propriétés pour l’utilisation programmée.

La classe fournit également la propriété de « Font » (qui prend le font), la « Borders » propriétés (qu’il prend les frontières).

Les instances sont créées à travers un constructeur unique qui initialisera l’objet avec des valeurs par défaut.

Propriétés

NameTypeAccessDescription
FontFontReadGets the font.
BordersBordersReadGets the borders.
PatternFillPatternRead/WriteGets or sets the pattern.
ForegroundColorColorRead/WriteGets or sets the foreground color.
BackgroundColorColorRead/WriteGets or sets the background color.
NumberintRead/WriteGets or sets the number.
CustomstringRead/WriteGets or sets the custom.
NumberFormatstringRead/WriteGets or sets the number format.
HorizontalAlignmentHorizontalAlignmentTypeRead/WriteGets or sets the horizontal alignment.
VerticalAlignmentVerticalAlignmentTypeRead/WriteGets or sets the vertical alignment.
WrapTextboolRead/WriteGets or sets the wrap text.
IndentLevelintRead/WriteGets or sets the indent level.
TextRotationintRead/WriteGets or sets the text rotation.
ShrinkToFitboolRead/WriteGets or sets the shrink to fit.
ReadingOrderintRead/WriteGets or sets the reading order.
RelativeIndentintRead/WriteGets or sets the relative indent.
IsLockedboolRead/WriteGets or sets the is locked.
IsHiddenboolRead/WriteGets or sets the is hidden.
QuotePrefixboolRead/WriteGets or sets the quote prefix.

méthodes

SignatureDescription
Style()Creates a new style instance
Copy(source: Style)Copies data from another style object.
Equals(obj: object)Determines whether two style instances are equal.
GetHashCode()Serves as a hash function for a style object.

Voir aussi

  • Aspose.Cells pour .NET — Enterprise API Reference
  • Aspose.Cells pour .NET — Enterprise API Reference
 Français