Style

Overview

Style is a class in Aspose.Cells for NET.

Style.Style creates a new style instance with default values.

Properties

NameTypeAccessDescription
FontFontRead/WriteGets or sets the font applied to the style
BordersBordersRead/WriteGets or sets the Borders collection defining cell borders
PatternFillPatternRead/WriteGets or sets the FillPattern used for cell background
ForegroundColorColorRead/WriteGets or sets the foreground color of the style fill
BackgroundColorColorRead/WriteGets or sets the background color of the style fill
NumberintRead/WriteGets or sets the built‑in number format index for the style
Customstring?Read/WriteGets or sets a custom number format string, or null if not set
NumberFormatstringRead/WriteGets or sets the number format string applied to the style
HorizontalAlignmentHorizontalAlignmentTypeRead/WriteGets or sets the horizontal alignment of cell content
VerticalAlignmentVerticalAlignmentTypeRead/WriteGets or sets the vertical alignment of cell content
WrapTextboolRead/WriteGets or sets whether text wrapping is enabled for the style
IndentLevelintRead/WriteGets or sets the indentation level for the cell text
TextRotationintRead/WriteGets or sets the text rotation angle for the style
ShrinkToFitboolRead/WriteGets or sets whether text is shrunk to fit the cell width
ReadingOrderintRead/WriteGets or sets the reading order (LTR or RTL) for the style
RelativeIndentintRead/Write
IsLockedboolRead/WriteGets or sets whether the cell is locked when sheet protection is applied
IsHiddenboolRead/WriteGets or sets whether cells with this style are hidden

Methods

SignatureDescription
Style()Creates a new Style object with default formatting
Clone()Returns a deep copy of the style