Class CellStyleObject
public class CellStyleObject : IStyle, IExtendedFormat, IExcelApplication, IOptimizedUpdate
- Inheritance
-
CellStyleObject
- Implements
- Derived
- Inherited Members
Properties
Borders
public IBorders Borders { get; }
Property Value
BuiltIn
True if the style is a built-in style.
public bool BuiltIn { get; }
Property Value
Color
Gets or sets the cell shading color.
public Color Color { get; set; }
Property Value
FillPattern
Gets or Sets fill pattern type.
public ExcelPatternType FillPattern { get; set; }
Property Value
Font
public IFont Font { get; }
Property Value
FormulaHidden
True if the formula will be hidden when the worksheet is protected.
public bool FormulaHidden { get; set; }
Property Value
HorizontalAlignment
Returns or sets the horizontal alignment for the specified object.
public HorizontalAlignType HorizontalAlignment { get; set; }
Property Value
IncludeAlignment
True if the style includes the AddIndent, HorizontalAlignment, VerticalAlignment, WrapText, and Orientation properties.
public bool IncludeAlignment { get; set; }
Property Value
IncludeBorder
True if the style includes the Color, KnownColor, LineStyle, and Weight border properties
public bool IncludeBorder { get; set; }
Property Value
IncludeFont
True if the style includes the Background, Bold, Color, KnownColor, FontStyle, Italic, Name, OutlineFont, Shadow, Size, Strikethrough, Subscript, Superscript, and Underline font properties.
public bool IncludeFont { get; set; }
Property Value
IncludeNumberFormat
True if the style includes the NumberFormat property.
public bool IncludeNumberFormat { get; set; }
Property Value
IncludePatterns
True if the style includes the Color, KnownColor, InvertIfNegative, Pattern, PatternColor, and PatternKnownColor interior properties.
public bool IncludePatterns { get; set; }
Property Value
IncludeProtection
True if the style includes the FormulaHidden and Locked protection properties.
public bool IncludeProtection { get; set; }
Property Value
IndentLevel
Returns or sets the indent level for the style.
public int IndentLevel { get; set; }
Property Value
Interior
public IInterior Interior { get; }
Property Value
IsFirstSymbolApostrophe
If true then first symbol in cell is apostrophe.
public bool IsFirstSymbolApostrophe { get; set; }
Property Value
IsInitialized
public bool IsInitialized { get; }
Property Value
IsModified
public bool IsModified { get; }
Property Value
JustifyLast
Represents justify text alignment
public bool JustifyLast { get; set; }
Property Value
KnownColor
Gets or sets the cell shading excel color.
public ExcelColors KnownColor { get; set; }
Property Value
Locked
True if the object is locked; False if the object can be modified when the sheet is protected.
public bool Locked { get; set; }
Property Value
Name
Returns or sets the name of the object. Read-only String.
public string Name { get; }
Property Value
NumberFormat
Returns or sets the format code for the object.
public string NumberFormat { get; set; }
Property Value
NumberFormatIndex
Gets or Sets format index.
public int NumberFormatIndex { get; set; }
Property Value
NumberFormatLocal
Returns or sets the format code for the object as a string in the language of the user.
public string NumberFormatLocal { get; set; }
Property Value
NumberFormatSettings
public INumberFormat NumberFormatSettings { get; }
Property Value
Parent
public object Parent { get; }
Property Value
PatternColor
Returns or sets the color of the interior pattern.
public Color PatternColor { get; set; }
Property Value
PatternKnownColor
Returns or sets the excel color of the interior.
public ExcelColors PatternKnownColor { get; set; }
Property Value
ReadingOrder
Returns or sets the reading order for the specified object.
public ReadingOrderType ReadingOrder { get; set; }
Property Value
Rotation
The text orientation. Can be an integer value from 1 to 180 degrees
public int Rotation { get; set; }
Property Value
ShrinkToFit
True if text automatically shrinks to fit in the available column width.
public bool ShrinkToFit { get; set; }
Property Value
VerticalAlignment
Returns or sets the vertical alignment of the specified object.
public VerticalAlignType VerticalAlignment { get; set; }
Property Value
WrapText
True if Microsoft Excel wraps the text in the object.
public bool WrapText { get; set; }
Property Value
Methods
BeginUpdate()
public void BeginUpdate()
EndUpdate()
public void EndUpdate()
GetThemeColor(out ThemeColorType, out double)
Get the theme color.
public bool GetThemeColor(out ThemeColorType type, out double tint)
Parameters
type
ThemeColorTypetheme color type
tint
double
Returns
Remarks
If the color is a theme color, true returned, is not then false will be returned.
SetThemeColor(ThemeColorType, double)
Set the theme color.
public void SetThemeColor(ThemeColorType type, double tint)
Parameters
type
ThemeColorTypetheme color type
tint
double