In This Topic
The following tables list the members exposed by IStyle.
Public Properties
| Name | Description |
| AddIndent |
Gets or sets whether text is automatically indented when the text alignment in a cell is set to equal distribution either horizontally or vertically.
|
| Borders | Returns the IBorders collection that represents the borders of a style. |
| BuiltIn |
Gets whether the style is a built-in style.
|
| Font | Returns the IFont object that represents the font of the specified object. |
| FormulaHidden |
Gets or sets whether the formula is hidden when the worksheet is protected.
|
| HorizontalAlignment |
Gets or sets the horizontal alignment for the specified object.
|
| IncludeAlignment | Gets or sets whether style includes the IStyle.AddIndent, IStyle.HorizontalAlignment, IStyle.VerticalAlignment, IStyle.WrapText, and IStyle.Orientation properties. |
| IncludeBorder | Gets or sets whether the style includes the IBorder.Color, IBorder.ColorIndex,IBorder.LineStyle, and IBorder.Weight border properties. |
| IncludeFont | Gets or sets whether the style includes the IFont.Bold, IFont.Color,IFont.ColorIndex, IFont.FontStyle,IFont.Italic, IFont.Name,IFont.OutlineFont, IFont.Shadow,IFont.Size, IFont.Strikethrough,IFont.Subscript, IFont.Superscript, and IFont.Underline font properties. |
| IncludeNumber | Gets or sets whether the style includes the IStyle.NumberFormat property. |
| IncludePatterns | Gets or sets whether the style includes the IInterior.Color, IInterior.InvertIfNegative, IInterior.Pattern, IInterior.PatternColor, and IInterior.PatternColorIndex interior properties. |
| IncludeProtection | Gets or sets whether the style includes the IStyle.FormulaHidden and IStyle.Locked properties. |
| IndentLevel |
Gets or sets the indent level for the style.
|
| Interior | Returns an IInterior object that represents the interior of the specified object. |
| Locked |
Gets or sets whether the object is locked; False if the object can be modified when the sheet is protected.
|
| Name |
Returns the name of the object.
|
| NumberFormat |
Gets or sets the format code for the object as a string in the language of the user.
|
| Orientation |
Gets or sets the text orientation. Can be an integer value from –90 to 90 degrees.
|
| ShrinkToFit |
Gets or sets whether the text automatically shrinks to fit in the available column width.
|
| VerticalAlignment |
Gets or sets the vertical alignment of the specified object.
|
| WrapText |
Gets or sets whether to wrap the text.
|
Top
Public Methods
| Name | Description |
| Delete |
Deletes the object.
|
| FromJson |
Generates the named style from the json string.
|
| ToJson |
Generates a json string from the named style.
|
Top
See Also