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.
This class provides 46 methods for working with Style objects in C++ programs.
Available methods include: Borders, Clone, Color, FillPattern, Font, FromCore, GetBackgroundColor, GetBorders, GetCustom, GetFont, GetForegroundColor, GetHorizontalAlignment, and 33 additional methods.
All public members are accessible to any C++ application after installing the Aspose.Cells FOSS for C++ package.
Accessor methods: Borders, Color, FillPattern, Font, HorizontalAlignmentType, VerticalAlignmentType.
Accessor Methods
| Name | Type | Access | Description |
|---|---|---|---|
Font | Font | Read | Gets the font. |
Borders | Borders | Read | Gets the borders. |
FillPattern | FillPattern | Read | Gets the fill pattern. |
Color | Color | Read | Gets the color. |
HorizontalAlignmentType | HorizontalAlignmentType | Read | Gets the horizontal alignment type. |
VerticalAlignmentType | VerticalAlignmentType | Read | Gets the vertical alignment type. |
Methods
| Signature | Description |
|---|---|
Font() → Font | Gets the font settings. |
Borders() → Borders | Gets the border settings. |
FillPattern() → FillPattern | Gets the fill pattern. |
Color() → Color | Gets the fill foreground color. |
Color() → Color | Gets the fill background color. |
HorizontalAlignmentType() → HorizontalAlignmentType | Gets the horizontal alignment. |
VerticalAlignmentType() → VerticalAlignmentType | Gets the vertical alignment. |
GetFont() → Font | Gets the font settings. |
SetFont(value: Font) | Sets the font settings. |
GetBorders() → Borders | Gets the border settings. |
SetBorders(value: Borders) | Sets the border settings. |
GetPattern() → FillPattern | Gets the fill pattern. |
SetPattern(value: FillPattern) | Sets the fill pattern. |
GetForegroundColor() → Color | Gets the fill foreground color. |
SetForegroundColor(value: Color) | Sets the fill foreground color. |
GetBackgroundColor() → Color | Gets the fill background color. |
SetBackgroundColor(value: Color) | Sets the fill background color. |
GetNumber() → int | Gets the numeric format identifier. |
SetNumber(value: int) | Sets the numeric format identifier. |
GetCustom() → std::string | Gets the custom number format code. |
SetCustom(value: std::string) | Sets the custom number format code. |
GetNumberFormat() → std::string | Gets 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. |
GetHorizontalAlignment() → HorizontalAlignmentType | Gets the horizontal alignment. |
SetHorizontalAlignment(value: HorizontalAlignmentType) | Sets the horizontal alignment. |
GetVerticalAlignment() → VerticalAlignmentType | Gets the vertical alignment. |
SetVerticalAlignment(value: VerticalAlignmentType) | Sets the vertical alignment. |
GetWrapText() → bool | Gets whether text wraps within the cell. |
SetWrapText(value: bool) | Sets whether text wraps within the cell. |
GetIndentLevel() → int | Gets the indentation level. |
SetIndentLevel(value: int) | Sets the indentation level. Must be between 0 and 250. |
GetTextRotation() → int | Gets the text rotation. |
SetTextRotation(value: int) | Sets the text rotation. Must be between 0 and 180, or 255 for vertical text. |
GetShrinkToFit() → bool | Gets whether the cell content shrinks to fit. |
SetShrinkToFit(value: bool) | Sets whether the cell content shrinks to fit. |
GetReadingOrder() → int | Gets the reading order. |
SetReadingOrder(value: int) | Sets the reading order. Must be 0, 1, or 2. |
GetRelativeIndent() → int | Gets the relative indent. |
SetRelativeIndent(value: int) | Sets the relative indent. |
GetIsLocked() → bool | Gets whether the cell is locked when worksheet protection is enabled. |
SetIsLocked(value: bool) | Sets whether the cell is locked when worksheet protection is enabled. |
GetIsHidden() → bool | Gets whether the cell formula is hidden when worksheet protection is enabled. |
SetIsHidden(value: bool) | Sets whether the cell formula is hidden when worksheet protection is enabled. |
Clone() → Style | Creates a copy of the current style. The cloned style. |
ToCore() → Core::StyleValue | Converts this style to a Core StyleValue. |
FromCore(value: Core::StyleValue) → Style | Creates a Style from a Core StyleValue. |