Style Class

PicoXLSX

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: 2.4.0.0 (2.4.0)
Syntax
C#
public class Style : AbstractStyle

The Style type exposes the following members.

Constructors
  NameDescription
Public methodStyle
Default constructor
Public methodStyle(String)
Constructor with parameters
Public methodStyle(String, Int32, Boolean)
Constructor with parameters (internal use)
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 propertyHash
Gets the unique hash of the object
(Inherited from AbstractStyle.)
Public propertyInternalID
Gets or sets the internal ID for sorting purpose in the Excel style document (nullable)
(Inherited from AbstractStyle.)
Public propertyIsInternalStyle
Gets whether the style is system internal. Such styles are not meant to be altered
Public propertyName
Gets or sets the name of the style. If not defined, the automatically calculated hash will be used as name
Public propertyStyleManagerReference
Sets the reference of the style manager
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 methodCalculateHash
Override method to calculate the hash of this component
(Overrides AbstractStyleCalculateHash.)
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(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodEquals(AbstractStyle)
Method to compare two objects for sorting purpose
(Inherited from AbstractStyle.)
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 particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Private methodReorganizeStyle
Method to reorganize / synchronize the components of this style
Public methodToString
Override toString method
(Overrides ObjectToString.)
Top
See Also