Style Methods

The Style type exposes the following members.

Methods
  NameDescription
Public methodCopy
Copies data from another style object
Public methodEquals
Determines whether two Style instances are equal.
(Overrides ObjectEquals(Object).)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a Style object.
(Overrides ObjectGetHashCode.)
Public methodGetTwoColorGradient
Get the two-color gradient setting.
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Public methodIsModified
Checks whether the specified properties of the style have been modified. Used for style of ConditionalFormattings to check whether the specified properties of this style should be used when applying the ConditionalFormattings on a cell.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSetBorder
Sets the border of the style.
Public methodSetCustom
Sets the Custom number format string of a cell.
Public methodSetPatternColor
Sets the background color.
Public methodSetTwoColorGradient
Sets the specified fill to a two-color gradient.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUpdate
Apply the named style to the styles of the cells which use this named style. It works like clicking the "ok" button after you finished modifying the style. Only applies for named style.
See Also