Style Properties

The Style type exposes the following members.

Properties
  NameDescription
Public propertyBackgroundArgbColor
Gets and sets the background color with a 32-bit ARGB value.
Public propertyBackgroundColor
Gets or sets a style's background color.
Public propertyBackgroundThemeColor
Gets and sets the background theme color.
Public propertyBorders
Gets the BorderCollection of the style.
Public propertyCultureCustom
Gets and sets the culture-dependent 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.
Public propertyCustom
Represents the Custom number format string of a cell. If the Custom number format is not set(For example, the number format is builtin), we will return "".
Public propertyFont
Gets a Font object.
Public propertyForegroundArgbColor
Gets and sets the foreground color with a 32-bit ARGB value.
Public propertyForegroundColor
Gets or sets a style's foreground color.
Public propertyForegroundThemeColor
Gets and sets the foreground theme color.
Public propertyHorizontalAlignment
Gets or sets the horizontal alignment type of the text in a cell.
Public propertyIndentLevel
Represents the m_IndentLevel level for the cell or range. Can only be an integer from 0 to 250.
Public propertyInvariantCustom
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.
Public propertyIsDateTime
Indicates whether the number format is a date format.
Public propertyIsFormulaHidden
Represents if the formula will be hidden when the worksheet is protected.
Public propertyIsGradient
Indicates whether the cell shading is a gradient pattern.
Public propertyIsJustifyDistributed
Indicates if the cells justified or distributed alignment should be used on the last line of text.
Public propertyIsLocked
Gets or sets a value indicating whether a cell can be modified or not.
Public propertyIsPercent
Indicates whether the number format is a percent format.
Public propertyIsTextWrapped
Gets or sets a value indicating whether the text within a cell is wrapped.
Public propertyName
Gets or sets the name of the style.
Public propertyNumber
Gets or sets the display format of numbers and dates. The formatting patterns are different for different regions.
Public propertyParentStyle
Gets the parent style of this style.
Public propertyPattern
Gets or sets the cell background pattern type.
Public propertyQuotePrefix
Indicates whether the cell's value starts with single quote mark.
Public propertyRotation Obsolete.
Represents text rotation angle.
Public propertyRotationAngle
Represents text rotation angle.
Public propertyShrinkToFit
Represents if text automatically shrinks to fit in the available column width.
Public propertyTextDirection
Represents text reading order.
Public propertyVerticalAlignment
Gets or sets the vertical alignment type of the text in a cell.
See Also