Click or drag to resize
PicoXLSX

Style Class

Class representing a Style with sub classes within a style sheet. An instance of this class is only a container for the different sub-classes. These sub-classes contain the actual styling information
Inheritance Hierarchy
SystemObject
  PicoXLSXAbstractStyle
    PicoXLSXStyle

Namespace: PicoXLSX
Assembly: PicoXLSX (in PicoXLSX.dll) Version: 3.2.1+e0edc719a6aeecf6c989e5a57750c75d6f3175bb
Syntax
C#
public class Style : AbstractStyle

The Style type exposes the following members.

Constructors
 NameDescription
Public methodStyle Initializes a new instance of the Style class
Public methodStyle(String) Initializes a new instance of the Style class
Public methodStyle(String, Int32, Boolean) Initializes a new instance of the Style class
Top
Properties
 NameDescription
Public propertyCurrentBorder Gets or sets the current Border object of the style
Public propertyCurrentCellXf Gets or sets the current CellXf object of the style
Public propertyCurrentFill Gets or sets the current Fill object of the style
Public propertyCurrentFont Gets or sets the current Font object of the style
Public propertyCurrentNumberFormat Gets or sets the current NumberFormat object of the style
Public propertyInternalID Gets or sets the internal ID for sorting purpose in the Excel style document (nullable)
(Inherited from AbstractStyle)
Public propertyIsInternalStyle Gets a value indicating whether IsInternalStyle Gets whether the style is system internal. Such styles are not meant to be altered
Public propertyName Gets or sets the name of the informal style. If not defined, the automatically calculated hash will be used as name
Top
Methods
 NameDescription
Public methodAppend 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
Public methodCompareTo Method to compare two objects for sorting purpose
(Inherited from AbstractStyle)
Public methodCopy Method to copy the current object to a new one without casting
(Overrides AbstractStyleCopy)
Protected methodCopyPropertiesT 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)
Public methodCopyStyle Method to copy the current object to a new one with casting
Public methodEquals(AbstractStyle) Method to compare two objects for sorting purpose
(Inherited from AbstractStyle)
Public methodEquals(Object)Determines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCode Returns a hash code for this instance
(Overrides ObjectGetHashCode)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToString Override toString method
(Overrides ObjectToString)
Top
See Also