[]
Represents a style description for a range.
public interface IStyle
Gets or sets whether text is automatically indented when the text alignment in a cell is set to equal distribution either horizontally or vertically.
bool AddIndent { get; set; }
Returns the IBorders collection that represents the borders of a style.
IBorders Borders { get; }
Gets whether the style is a built-in style.
bool BuiltIn { get; }
Returns the IFont object that represents the font of the specified object.
IFont Font { get; }
Gets or sets whether the formula is hidden when the worksheet is protected.
bool FormulaHidden { get; set; }
Gets or sets the horizontal alignment for the specified object.
HorizontalAlignment HorizontalAlignment { get; set; }
Gets or sets whether style includes the IStyle.AddIndent, IStyle.HorizontalAlignment, IStyle.VerticalAlignment, IStyle.WrapText, and IStyle.Orientation properties.
bool IncludeAlignment { get; set; }
Gets or sets whether the style includes the IBorder.Color, IBorder.ColorIndex,IBorder.LineStyle, and IBorder.Weight border properties.
bool IncludeBorder { get; set; }
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.
bool IncludeFont { get; set; }
Gets or sets whether the style includes the IStyle.NumberFormat property.
bool IncludeNumber { get; set; }
Gets or sets whether the style includes the IInterior.Color, IInterior.InvertIfNegative, IInterior.Pattern, IInterior.PatternColor, and IInterior.PatternColorIndex interior properties.
bool IncludePatterns { get; set; }
bool IncludeProtection { get; set; }
Gets or sets the indent level for the style.
int IndentLevel { get; set; }
Returns an IInterior object that represents the interior of the specified object.
IInterior Interior { get; }
Gets or sets whether the object is locked; False if the object can be modified when the sheet is protected.
bool Locked { get; set; }
Returns the name of the object.
string Name { get; }
Gets or sets the format code for the object as a string in the language of the user.
string NumberFormat { get; set; }
Gets or sets the text orientation. Can be an integer value from –90 to 90 degrees.
int Orientation { get; set; }
Gets or sets whether the text automatically shrinks to fit in the available column width.
bool ShrinkToFit { get; set; }
Gets or sets the vertical alignment of the specified object.
VerticalAlignment VerticalAlignment { get; set; }
Gets or sets whether to wrap the text.
bool WrapText { get; set; }
Deletes the object.
bool Delete()
Returns whether successfully deleted.
Generates the named style from the json string.
void FromJson(string json)
json
stringThe json string.
Generates a json string from the named style.
string ToJson()