Style Class |
public class Style : AbstractStyle
The Style type exposes the following members.
| Name | Description | |
|---|---|---|
| Style | Initializes a new instance of the Style class | |
| Style(String) | Initializes a new instance of the Style class | |
| Style(String, Int32, Boolean) | Initializes a new instance of the Style class |
| Name | Description | |
|---|---|---|
| CurrentBorder | Gets or sets the current Border object of the style | |
| CurrentCellXf | Gets or sets the current CellXf object of the style | |
| CurrentFill | Gets or sets the current Fill object of the style | |
| CurrentFont | Gets or sets the current Font object of the style | |
| CurrentNumberFormat | Gets or sets the current NumberFormat object of the style | |
| InternalID |
Gets or sets the internal ID for sorting purpose in the Excel style document (nullable)
(Inherited from AbstractStyle) | |
| IsInternalStyle | Gets a value indicating whether IsInternalStyle Gets whether the style is system internal. Such styles are not meant to be altered | |
| Name | Gets or sets the name of the informal style. If not defined, the automatically calculated hash will be used as name |
| Name | Description | |
|---|---|---|
| Append | Appends the specified style parts to the current one. The parts can be instances of sub-classes like Border or CellXf or a Style instance. Only the altered properties of the specified style or style part that differs from a new / untouched style instance will be appended. This enables method chaining | |
| CompareTo |
Method to compare two objects for sorting purpose
(Inherited from AbstractStyle) | |
| Copy |
Method to copy the current object to a new one without casting
(Overrides AbstractStyleCopy) | |
| CopyPropertiesT |
Internal method to copy altered properties from a source object. The decision whether a property is copied is dependent on a untouched reference object
(Inherited from AbstractStyle) | |
| CopyStyle | Method to copy the current object to a new one with casting | |
| Equals(AbstractStyle) |
Method to compare two objects for sorting purpose
(Inherited from AbstractStyle) | |
| Equals(Object) | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) | |
| GetHashCode |
Returns a hash code for this instance
(Overrides ObjectGetHashCode) | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
| ToString |
Override toString method
(Overrides ObjectToString) |