Style

Overview

Style is a class in Aspose.Cells FOSS for C++.

Represents a mutable cell style facade that can be applied to one or more cells.

Properties

NameTypeAccessDescription
FontFontRead
BordersBordersRead
FillPatternFillPatternRead
ColorColorReadThe Color color.
HorizontalAlignmentTypeHorizontalAlignmentTypeRead
VerticalAlignmentTypeVerticalAlignmentTypeRead

Methods

SignatureDescription
Font()Font
Borders()Borders
FillPattern()FillPattern
Color()Color
Color()Color
HorizontalAlignmentType()HorizontalAlignmentType
VerticalAlignmentType()VerticalAlignmentType
GetNumberFormat()std::stringGets the resolved number format string.
SetNumberFormat(value: std::string)Sets the number format. Accepts either a built-in format string or a custom format code.
SetIndentLevel(value: int)Sets the indentation level. Must be between 0 and 250.
SetTextRotation(value: int)Sets the text rotation. Must be between 0 and 180, or 255 for vertical text.
SetReadingOrder(value: int)Sets the reading order. Must be 0, 1, or 2.
Clone()StyleCreates a copy of the current style. The cloned style.
ToCore()Core::StyleValueConverts this style to a Core StyleValue.
FromCore(value: Core::StyleValue)StyleCreates a Style from a Core StyleValue.

See Also