Represents display style of excel document, such as font, color, alignment, border, etc. More...
Inherits Object.
Public Member Functions | |
virtual intrusive_ptr< Aspose::Cells::IThemeColor > | GetBackgroundIThemeColor ()=0 |
Get the background theme color. More... | |
virtual void | SetBackgroundIThemeColor (intrusive_ptr< Aspose::Cells::IThemeColor > value)=0 |
Sets the background theme color. More... | |
virtual intrusive_ptr< Aspose::Cells::IThemeColor > | GetForegroundIThemeColor ()=0 |
Gets the foreground theme color. More... | |
virtual void | SetForegroundIThemeColor (intrusive_ptr< Aspose::Cells::IThemeColor > value)=0 |
Sets the foreground theme color. More... | |
virtual intrusive_ptr< Aspose::Cells::Systems::String > | GetName ()=0 |
Gets the name of the style. More... | |
virtual void | SetName (intrusive_ptr< Aspose::Cells::Systems::String > value)=0 |
Sets the name of the style. More... | |
virtual Aspose::Cells::BackgroundType | GetPattern ()=0 |
Gets the cell background pattern type. More... | |
virtual void | SetPattern (Aspose::Cells::BackgroundType value)=0 |
Sets the cell background pattern type. More... | |
virtual void | SetPatternColor (Aspose::Cells::BackgroundType pattern, intrusive_ptr< Aspose::Cells::Systems::Drawing::Color > color1, intrusive_ptr< Aspose::Cells::Systems::Drawing::Color > color2)=0 |
Sets the background color. More... | |
virtual intrusive_ptr< Aspose::Cells::IBorderCollection > | GetIBorders ()=0 |
Gets the IBorderCollection of the style. More... | |
virtual intrusive_ptr< Aspose::Cells::Systems::Drawing::Color > | GetBackgroundColor ()=0 |
Gets a style's background color. More... | |
virtual void | SetBackgroundColor (intrusive_ptr< Aspose::Cells::Systems::Drawing::Color > value)=0 |
Sets a style's background color. More... | |
virtual Aspose::Cells::Systems::Int32 | GetBackgroundArgbColor ()=0 |
Gets the background color with a 32-bit ARGB value. More... | |
virtual void | SetBackgroundArgbColor (Aspose::Cells::Systems::Int32 value)=0 |
Sets the background color with a 32-bit ARGB value. More... | |
virtual intrusive_ptr< Aspose::Cells::Systems::Drawing::Color > | GetForegroundColor ()=0 |
Gets a style's foreground color. More... | |
virtual void | SetForegroundColor (intrusive_ptr< Aspose::Cells::Systems::Drawing::Color > value)=0 |
Sets a style's foreground color. More... | |
virtual Aspose::Cells::Systems::Int32 | GetForegroundArgbColor ()=0 |
Gets the foreground color with a 32-bit ARGB value. More... | |
virtual void | SetForegroundArgbColor (Aspose::Cells::Systems::Int32 value)=0 |
Sets the foreground color with a 32-bit ARGB value. More... | |
virtual void | Copy (intrusive_ptr< Aspose::Cells::IStyle > style)=0 |
Copies data from another style object More... | |
virtual bool | HasBorders ()=0 |
Checks whether there are borders have been set for the style. More... | |
virtual intrusive_ptr< Aspose::Cells::IStyle > | GetParentIStyle ()=0 |
Gets the parent style of this style. More... | |
virtual void | Update ()=0 |
Apply the named style to the styles of the cells which use this named style. It works like clicking the "ok" button after you finished modifying the style. Only applies for named style. More... | |
virtual bool | IsModified (Aspose::Cells::StyleModifyFlag modifyFlag)=0 |
Checks whether the specified properties of the style have been modified. Used for style of ConditionalFormattings to check whether the specified properties of this style should be used when applying the ConditionalFormattings on a cell. More... | |
virtual bool | Equals (intrusive_ptr< Aspose::Cells::Systems::Object > obj)=0 |
Determines whether two Style instances are equal. More... | |
virtual Aspose::Cells::Systems::Int32 | GetHashCode ()=0 |
Serves as a hash function for a Style object. More... | |
virtual Aspose::Cells::Systems::Int32 | GetIndentLevel ()=0 |
Represents the indent level for the cell or range. Can only be an integer from 0 to 250. More... | |
virtual void | SetIndentLevel (Aspose::Cells::Systems::Int32 value)=0 |
Represents the indent level for the cell or range. Can only be an integer from 0 to 250. More... | |
virtual intrusive_ptr< Aspose::Cells::IFont > | GetIFont ()=0 |
Gets an IFont object. More... | |
virtual Aspose::Cells::Systems::Int32 | GetRotationAngle ()=0 |
Represents text rotation angle. More... | |
virtual void | SetRotationAngle (Aspose::Cells::Systems::Int32 value)=0 |
Represents text rotation angle. More... | |
virtual Aspose::Cells::TextAlignmentType | GetHorizontalAlignment ()=0 |
Gets the horizontal alignment type of the text in a cell. More... | |
virtual void | SetHorizontalAlignment (Aspose::Cells::TextAlignmentType value)=0 |
Sets the horizontal alignment type of the text in a cell. More... | |
virtual Aspose::Cells::TextAlignmentType | GetVerticalAlignment ()=0 |
Checks the vertical alignment type of the text in a cell. More... | |
virtual void | SetVerticalAlignment (Aspose::Cells::TextAlignmentType value)=0 |
Sets the vertical alignment type of the text in a cell. More... | |
virtual bool | IsTextWrapped ()=0 |
Gets or sets a value indicating whether the text within a cell is wrapped. More... | |
virtual void | SetTextWrapped (bool value)=0 |
Sets a value indicating whether the text within a cell is wrapped. More... | |
virtual Aspose::Cells::Systems::Int32 | GetNumber ()=0 |
Gets the display format of numbers and dates. The formatting patterns are different for different regions. More... | |
virtual void | SetNumber (Aspose::Cells::Systems::Int32 value)=0 |
Sets the display format of numbers and dates. The formatting patterns are different for different regions. More... | |
virtual bool | SetBorder (Aspose::Cells::BorderType borderEdge, Aspose::Cells::CellBorderType borderStyle, intrusive_ptr< Aspose::Cells::Systems::Drawing::Color > borderColor)=0 |
Sets the borders of the style. More... | |
virtual bool | IsLocked ()=0 |
Gets a value indicating whether a cell can be modified or not. More... | |
virtual void | SetLocked (bool value)=0 |
Sets a value indicating whether a cell can be modified or not. More... | |
virtual void | SetCustom (intrusive_ptr< Aspose::Cells::Systems::String > custom, bool builtinPreference)=0 |
Sets the custom number format string of a cell. More... | |
virtual intrusive_ptr< Aspose::Cells::Systems::String > | GetCustom ()=0 |
Represents the custom number format string of this style object. If the custom number format is not set(For example, the number format is builtin), "" will be returned. More... | |
virtual void | SetCustom (intrusive_ptr< Aspose::Cells::Systems::String > value)=0 |
Represents the custom number format string of this style object. If the custom number format is not set(For example, the number format is builtin), "" will be returned. More... | |
virtual intrusive_ptr< Aspose::Cells::Systems::String > | GetCultureCustom ()=0 |
Gets the culture custom number format. More... | |
virtual void | SetCultureCustom (intrusive_ptr< Aspose::Cells::Systems::String > value)=0 |
Sets the culture custom number format. More... | |
virtual intrusive_ptr< Aspose::Cells::Systems::String > | GetInvariantCustom ()=0 |
Gets the culture-independent pattern string for number format. If no number format has been set for this object, null will be returned. If number format is builtin, the pattern string corresponding to the builtin number will be returned. More... | |
virtual bool | IsFormulaHidden ()=0 |
Represents if the formula will be hidden when the worksheet is protected. More... | |
virtual void | SetFormulaHidden (bool value)=0 |
Represents if the formula will be hidden when the worksheet is protected. More... | |
virtual bool | GetShrinkToFit ()=0 |
Represents if text automatically shrinks to fit in the available column width. More... | |
virtual void | SetShrinkToFit (bool value)=0 |
Represents if text automatically shrinks to fit in the available column width. More... | |
virtual Aspose::Cells::TextDirectionType | GetTextDirection ()=0 |
Represents text reading order. More... | |
virtual void | SetTextDirection (Aspose::Cells::TextDirectionType value)=0 |
Represents text reading order. More... | |
virtual bool | IsJustifyDistributed ()=0 |
Indicates if the cells justified or distributed alignment should be used on the last line of text. More... | |
virtual void | SetJustifyDistributed (bool value)=0 |
Indicates if the cells justified or distributed alignment should be used on the last line of text. More... | |
virtual bool | GetQuotePrefix ()=0 |
Indicates whether the cell's value starts with single quote mark. More... | |
virtual void | SetQuotePrefix (bool value)=0 |
Indicates whether the cell's value starts with single quote mark. More... | |
virtual bool | IsGradient ()=0 |
Indicates whether the cell shading is a gradient pattern. More... | |
virtual void | SetGradient (bool value)=0 |
Indicates whether the cell shading is a gradient pattern. More... | |
virtual void | SetTwoColorGradient (intrusive_ptr< Aspose::Cells::Systems::Drawing::Color > color1, intrusive_ptr< Aspose::Cells::Systems::Drawing::Color > color2, Aspose::Cells::Drawing::GradientStyleType gradientStyleType, Aspose::Cells::Systems::Int32 variant)=0 |
Sets the specified fill to a two-color gradient. More... | |
virtual void | GetTwoColorGradient (intrusive_ptr< Aspose::Cells::Systems::Drawing::Color > &color1, intrusive_ptr< Aspose::Cells::Systems::Drawing::Color > &color2, Aspose::Cells::Drawing::GradientStyleType &gradientStyleType, Aspose::Cells::Systems::Int32 &variant)=0 |
Get the two-color gradient setting. More... | |
virtual bool | IsPercent ()=0 |
Indicates whether the number format is a percent format. More... | |
virtual bool | IsDateTime ()=0 |
Indicates whether the number format is a date format. More... | |
Represents display style of excel document, such as font, color, alignment, border, etc.
|
pure virtual |
Copies data from another style object
style | Source Style object |
This method does not copy the name of the style. If you want to copy the name, please call the following codes after copying style: destStyle->SetName(style->GetName())
|
pure virtual |
Determines whether two Style instances are equal.
obj | The Style object to compare with the current Style object. |
|
pure virtual |
Gets the background color with a 32-bit ARGB value.
|
pure virtual |
Gets a style's background color.
If you want to set a cell's color, please use GetForegroundColor method of IStyle. Only if the cell style pattern is other than none or solid, this property will take effect.
|
pure virtual |
Get the background theme color.
If the background color is not a theme color, NULL will be returned.
|
pure virtual |
Gets the culture custom number format.
|
pure virtual |
Represents the custom number format string of this style object. If the custom number format is not set(For example, the number format is builtin), "" will be returned.
The returned custom string is culture-independent.
|
pure virtual |
Gets the foreground color with a 32-bit ARGB value.
|
pure virtual |
Gets a style's foreground color.
It means no color setting if Color::Empty is returned.
|
pure virtual |
Gets the foreground theme color.
If the foreground color is not a theme color, NULL will be returned.
|
pure virtual |
Serves as a hash function for a Style object.
This method is only for internal use.
|
pure virtual |
Gets the horizontal alignment type of the text in a cell.
|
pure virtual |
Gets the IBorderCollection of the style.
|
pure virtual |
Gets an IFont object.
|
pure virtual |
Represents the indent level for the cell or range. Can only be an integer from 0 to 250.
If text horizontal alignment type is set to value other than left or right, m_IndentLevel level will be reset to zero.
|
pure virtual |
Gets the culture-independent pattern string for number format. If no number format has been set for this object, null will be returned. If number format is builtin, the pattern string corresponding to the builtin number will be returned.
|
pure virtual |
Gets the name of the style.
|
pure virtual |
Gets the display format of numbers and dates. The formatting patterns are different for different regions.
For example, the formatting patterns represented by numbers for en_US region:
<font color="gray">Value </font> | <font color="gray">Type </font> | <font color="gray">Format String </font> |
0 | General | General |
1 | Decimal | 0 |
2 | Decimal | 0.00 |
3 | Decimal | #,##0 |
4 | Decimal | #,##0.00 |
5 | Currency | $#,##0_);($#,##0) |
6 | Currency | $#,##0_);Red |
7 | Currency | $#,##0.00_);($#,##0.00) |
8 | Currency | $#,##0.00_);Red |
9 | Percentage | 0% |
10 | Percentage | 0.00% |
11 | Scientific | 0.00E+00 |
12 | Fraction | # ?/? |
13 | Fraction | # ??/?? |
14 | Date | m/d/yyyy |
15 | Date | d-mmm-yy |
16 | Date | d-mmm |
17 | Date | mmm-yy |
18 | Time | h:mm AM/PM |
19 | Time | h:mm:ss AM/PM |
20 | Time | h:mm |
21 | Time | h:mm:ss |
22 | Time | m/d/yyyy h:mm |
37 | Accounting | #,##0_);(#,##0) |
38 | Accounting | #,##0_);Red |
39 | Accounting | #,##0.00_);(#,##0.00) |
40 | Accounting | #,##0.00_);Red |
41 | Accounting | _(* #,##0_);_(* (#,##0);_(* "-"_);_() |
42 | Currency | _($* #,##0_);_($* (#,##0);_($* "-"_);_() |
43 | Accounting | _(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_() |
44 | Currency | _($* #,##0.00_);_($* (#,##0.00);_($* "-"??_);_() |
45 | Time | mm:ss |
46 | Time | [h]:mm:ss |
47 | Time | mm:ss.0 |
48 | Scientific | ##0.0E+0 |
49 | Text | </td> |
|
pure virtual |
Gets the parent style of this style.
|
pure virtual |
Gets the cell background pattern type.
|
pure virtual |
Indicates whether the cell's value starts with single quote mark.
|
pure virtual |
Represents text rotation angle.
0: Not rotated.
255: Top to Bottom.
-90: Downward.
90: Upward.
You can set 255 or value ranged from -90 to 90.
|
pure virtual |
Represents if text automatically shrinks to fit in the available column width.
|
pure virtual |
Represents text reading order.
|
pure virtual |
Get the two-color gradient setting.
color1 | One gradient color. |
color2 | Two gradient color. |
gradientStyleType | Gradient shading style. |
variant | The gradient variant. |
|
pure virtual |
Checks the vertical alignment type of the text in a cell.
|
pure virtual |
Checks whether there are borders have been set for the style.
|
pure virtual |
Indicates whether the number format is a date format.
|
pure virtual |
Represents if the formula will be hidden when the worksheet is protected.
|
pure virtual |
Indicates whether the cell shading is a gradient pattern.
|
pure virtual |
Indicates if the cells justified or distributed alignment should be used on the last line of text.
This is typical for East Asian alignments but not typical in other contexts.
|
pure virtual |
Gets a value indicating whether a cell can be modified or not.
Locking cells has no effect unless the worksheet is protected.
|
pure virtual |
Checks whether the specified properties of the style have been modified. Used for style of ConditionalFormattings to check whether the specified properties of this style should be used when applying the ConditionalFormattings on a cell.
modifyFlag | Style modified flags |
|
pure virtual |
Indicates whether the number format is a percent format.
|
pure virtual |
Gets or sets a value indicating whether the text within a cell is wrapped.
|
pure virtual |
Sets the background color with a 32-bit ARGB value.
|
pure virtual |
Sets a style's background color.
If you want to set a cell's color, please use GetForegroundColor method of IStyle. Only if the cell style pattern is other than none or solid, this property will take effect.
|
pure virtual |
Sets the background theme color.
If the background color is not a theme color, NULL will be returned.
|
pure virtual |
Sets the borders of the style.
borderEdge | The type fo the border. |
borderStyle | The style of the border. |
borderColor | The color of the border. |
|
pure virtual |
Sets the culture custom number format.
|
pure virtual |
Sets the custom number format string of a cell.
custom | custom number format string, should be InvariantCulture pattern. |
builtinPreference | If given custom number format string matches one of the built-in number formats corresponding to current regional settings, whether set the number format as built-in instead of custom. |
|
pure virtual |
Represents the custom number format string of this style object. If the custom number format is not set(For example, the number format is builtin), "" will be returned.
The returned custom string is culture-independent.
|
pure virtual |
Sets the foreground color with a 32-bit ARGB value.
|
pure virtual |
Sets a style's foreground color.
It means no color setting if Color::Empty is returned.
|
pure virtual |
Sets the foreground theme color.
If the foreground color is not a theme color, NULL will be returned.
|
pure virtual |
Represents if the formula will be hidden when the worksheet is protected.
|
pure virtual |
Indicates whether the cell shading is a gradient pattern.
|
pure virtual |
Sets the horizontal alignment type of the text in a cell.
|
pure virtual |
Represents the indent level for the cell or range. Can only be an integer from 0 to 250.
If text horizontal alignment type is set to value other than left or right, indent level will be reset to zero.
|
pure virtual |
Indicates if the cells justified or distributed alignment should be used on the last line of text.
This is typical for East Asian alignments but not typical in other contexts.
|
pure virtual |
Sets a value indicating whether a cell can be modified or not.
Locking cells has no effect unless the worksheet is protected.
|
pure virtual |
Sets the name of the style.
|
pure virtual |
Sets the display format of numbers and dates. The formatting patterns are different for different regions.
For example, the formatting patterns represented by numbers for en_US region:
<font color="gray">Value </font> | <font color="gray">Type </font> | <font color="gray">Format String </font> |
0 | General | General |
1 | Decimal | 0 |
2 | Decimal | 0.00 |
3 | Decimal | #,##0 |
4 | Decimal | #,##0.00 |
5 | Currency | $#,##0_);($#,##0) |
6 | Currency | $#,##0_);Red |
7 | Currency | $#,##0.00_);($#,##0.00) |
8 | Currency | $#,##0.00_);Red |
9 | Percentage | 0% |
10 | Percentage | 0.00% |
11 | Scientific | 0.00E+00 |
12 | Fraction | # ?/? |
13 | Fraction | # ??/?? |
14 | Date | m/d/yyyy |
15 | Date | d-mmm-yy |
16 | Date | d-mmm |
17 | Date | mmm-yy |
18 | Time | h:mm AM/PM |
19 | Time | h:mm:ss AM/PM |
20 | Time | h:mm |
21 | Time | h:mm:ss |
22 | Time | m/d/yyyy h:mm |
37 | Accounting | #,##0_);(#,##0) |
38 | Accounting | #,##0_);Red |
39 | Accounting | #,##0.00_);(#,##0.00) |
40 | Accounting | #,##0.00_);Red |
41 | Accounting | _(* #,##0_);_(* (#,##0);_(* "-"_);_() |
42 | Currency | _($* #,##0_);_($* (#,##0);_($* "-"_);_() |
43 | Accounting | _(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_() |
44 | Currency | _($* #,##0.00_);_($* (#,##0.00);_($* "-"??_);_() |
45 | Time | mm:ss |
46 | Time | [h]:mm:ss |
47 | Time | mm:ss.0 |
48 | Scientific | ##0.0E+0 |
49 | Text | </td> |
|
pure virtual |
Sets the cell background pattern type.
|
pure virtual |
Sets the background color.
pattern | The pattern. |
color1 | The foreground color. |
color2 | The background color. Only works when pattern is not BackgroundType.None and BackgroundType.Solid. |
|
pure virtual |
Indicates whether the cell's value starts with single quote mark.
|
pure virtual |
Represents text rotation angle.
0: Not rotated.
255: Top to Bottom.
-90: Downward.
90: Upward.
You can set 255 or value ranged from -90 to 90.
|
pure virtual |
Represents if text automatically shrinks to fit in the available column width.
|
pure virtual |
Represents text reading order.
|
pure virtual |
Sets a value indicating whether the text within a cell is wrapped.
|
pure virtual |
Sets the specified fill to a two-color gradient.
color1 | One gradient color. |
color2 | Two gradient color. |
gradientStyleType | Gradient shading style. |
variant | The gradient variant. Can be a value from 1 through 4, corresponding to one of the four variants on the Gradient tab in the Fill Effects dialog box. If style is GradientStyleType_FromCenter, the Variant argument can only be 1 or 2. |
|
pure virtual |
Sets the vertical alignment type of the text in a cell.
|
pure virtual |
Apply the named style to the styles of the cells which use this named style. It works like clicking the "ok" button after you finished modifying the style. Only applies for named style.