Style.Fill Class

PicoXLSX

PicoXLSX

StyleFill Class

Class representing a Fill (background) entry. The Fill entry is used to define background colors and fill patterns
Inheritance Hierarchy
SystemObject  PicoXLSXAbstractStyle
    PicoXLSXStyleFill

Namespace:  PicoXLSX
Assembly:  PicoXLSX (in PicoXLSX.dll) Version: 2.4.0.0 (2.4.0)
Syntax
C#
public class Fill : AbstractStyle

The StyleFill type exposes the following members.

Constructors
  NameDescription
Public methodStyleFill
Default constructor
Public methodStyleFill(String, StyleFillFillType)
Constructor with color value and fill type
Public methodStyleFill(String, String)
Constructor with foreground and background color
Top
Properties
  NameDescription
Public propertyBackgroundColor
Gets or sets the background color of the fill. The value is expressed as hex string with the format AARRGGBB. AA (Alpha) is usually FF
Public propertyForegroundColor
Gets or sets the foreground color of the fill. The value is expressed as hex string with the format AARRGGBB. AA (Alpha) is usually FF
Public propertyHash
Gets the unique hash of the object
(Inherited from AbstractStyle.)
Public propertyIndexedColor
Gets or sets the indexed color (Default is 64)
Public propertyInternalID
Gets or sets the internal ID for sorting purpose in the Excel style document (nullable)
(Inherited from AbstractStyle.)
Public propertyPatternFill
Gets or sets the pattern type of the fill (Default is none)
Top
Methods
  NameDescription
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.)
Public methodCopyFill
Method to copy the current object to a new one with casting
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 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 methodStatic memberGetPatternName
Gets the pattern name from the enum
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.)
Public methodSetColor
Sets the color and the depending fill type
Public methodToString
Override toString method
(Overrides ObjectToString.)
Top
Fields
  NameDescription
Public fieldStatic memberDEFAULTCOLOR
Default Color (foreground or background) as constant
Top
See Also