Click or drag to resize

IStyle Interface

The Style interface

Namespace: Spire.Xls.Core
Assembly: Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
public interface IStyle : IExtendedFormat, IExcelApplication, 
	IOptimizedUpdate

The IStyle type exposes the following members.

Properties
Name Description
Public property Borders
Returns borders object for this extended format.
(Inherited from IExtendedFormat .)
Public property BuiltIn
True if the style is a built-in style. Read-only Boolean.
Public property Color
Returns or sets the cell shading color.
(Inherited from IExtendedFormat .)
Public property FillPattern
Gets / Sets XlsFill pattern.
(Inherited from IExtendedFormat .)
Public property Font
Returns font object for this extended format.
(Inherited from IExtendedFormat .)
Public property FormulaHidden
True if formula is hidden.
(Inherited from IExtendedFormat .)
Public property HorizontalAlignment
Horizontal alignment.
(Inherited from IExtendedFormat .)
Public property IncludeAlignment
True if the style includes the AddIndent, HorizontalAlignment, VerticalAlignment, WrapText, and Orientation properties. Read / write Boolean.
(Inherited from IExtendedFormat .)
Public property IncludeBorder
True if the style includes the Color, ColorIndex, LineStyle, and Weight border properties. Read / write Boolean.
(Inherited from IExtendedFormat .)
Public property IncludeFont
True if the style includes the Background, Bold, Color, ColorIndex, FontStyle, Italic, Name, OutlineFont, Shadow, Size, Strikethrough, Subscript, Superscript, and Underline font properties. Read / write Boolean.
(Inherited from IExtendedFormat .)
Public property IncludeNumberFormat
True if the style includes the NumberFormat property. Read / write Boolean.
(Inherited from IExtendedFormat .)
Public property IncludePatterns
True if the style includes the Color, ColorIndex, InvertIfNegative, Pattern, PatternColor, and PatternColorIndex interior properties. Read / write Boolean.
(Inherited from IExtendedFormat .)
Public property IncludeProtection
True if the style includes the FormulaHidden and Locked protection properties. Read / write Boolean.
(Inherited from IExtendedFormat .)
Public property IndentLevel
Indent level.
(Inherited from IExtendedFormat .)
Public property Interior
Returns interior object for this extended format.
Public property IsFirstSymbolApostrophe
If true then first symbol in cell is apostrophe.
(Inherited from IExtendedFormat .)
Public property IsInitialized
Indicates whether style is initialized (differs from Normal style). Read-only.
Public property IsModified
Gets a value indicating whether the object has been modified.
(Inherited from IExtendedFormat .)
Public property JustifyLast
For far east languages. Supported only for format. Always 0 for US.
(Inherited from IExtendedFormat .)
Public property KnownColor
Returns or sets the color of the interior. The color is specified as an index value into the current color palette.
(Inherited from IExtendedFormat .)
Public property Locked
True if cell is locked.
(Inherited from IExtendedFormat .)
Public property Name
Returns or sets the name of the object. Read-only String.
Public property NumberFormat
Returns or sets the format code for the object. Read / write String.
(Inherited from IExtendedFormat .)
Public property NumberFormatIndex
Gets / Sets format index.
(Inherited from IExtendedFormat .)
Public property NumberFormatLocal
Returns or sets the format code for the object as a string in the language of the user. Read / write String.
(Inherited from IExtendedFormat .)
Public property NumberFormatSettings
Returns object that describes number format. Read-only.
(Inherited from IExtendedFormat .)
Public property Parent
Gets the parent object of the current instance.
(Inherited from IExcelApplication .)
Public property PatternColor
Returns or sets the color of the interior pattern as an System.Drawing.Color value.
(Inherited from IExtendedFormat .)
Public property PatternKnownColor
Returns or sets the color of the interior pattern as an index into the current color palette.
(Inherited from IExtendedFormat .)
Public property ReadingOrder
Text direction, the reading order for far east versions.
(Inherited from IExtendedFormat .)
Public property Rotation
Text rotation angle: 0 Not rotated 1-90 1 to 90 degrees counterclockwise 91-180 1 to 90 degrees clockwise 255 Letters are stacked top-to-bottom, but not rotated.
(Inherited from IExtendedFormat .)
Public property ShrinkToFit
True - shrink content to fit into cell.
(Inherited from IExtendedFormat .)
Public property VerticalAlignment
Vertical alignment.
(Inherited from IExtendedFormat .)
Public property WrapText
True - Text is wrapped at right border.
(Inherited from IExtendedFormat .)
Top
Methods
Name Description
Public method BeginUpdate
This method should be called before several updates to the object will take place.
(Inherited from IOptimizedUpdate .)
Public method EndUpdate
This method should be called after several updates to the object took place.
(Inherited from IOptimizedUpdate .)
Public method GetThemeColor
Get the theme color.
(Inherited from IExtendedFormat .)
Public method SetThemeColor
Set the theme color.
(Inherited from IExtendedFormat .)
Top
See Also