NanoXLSX Library Documentation
![]() | StyleFill Class |
Class representing a Fill (background) entry. The Fill entry is used to define background colors and fill patterns

Namespace: NanoXLSX.Style
Assembly: NanoXLSX (in NanoXLSX.dll) Version: 1.2.3.0 (1.2.3)

C#
public class Fill : AbstractStyle
The StyleFill type exposes the following members.

Name | Description | |
---|---|---|
![]() | StyleFill |
Default constructor
|
![]() | StyleFill(String, StyleFillFillType) |
Constructor with color value and fill type
|
![]() | StyleFill(String, String) |
Constructor with foreground and background color
|

Name | Description | |
---|---|---|
![]() | BackgroundColor |
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
|
![]() | ForegroundColor |
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
|
![]() | Hash |
Gets the unique hash of the object
(Inherited from AbstractStyle.) |
![]() | IndexedColor |
Gets or sets the indexed color (Default is 64)
|
![]() | InternalID |
Gets or sets the internal ID for sorting purpose in the Excel style document (nullable)
(Inherited from AbstractStyle.) |
![]() | PatternFill |
Gets or sets the pattern type of the fill (Default is none)
|

Name | Description | |
---|---|---|
![]() | CalculateHash |
Override method to calculate the hash of this component
(Overrides AbstractStyleCalculateHash.) |
![]() | 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.) |
![]() | CopyFill |
Method to copy the current object to a new one with casting
|
![]() | 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.) |
![]() | Equals(Object) | (Inherited from Object.) |
![]() | Equals(AbstractStyle) |
Method to compare two objects for sorting purpose
(Inherited from AbstractStyle.) |
![]() | 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 | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() ![]() | GetPatternName |
Gets the pattern name from the enum
|
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | SetColor |
Sets the color and the depending fill type
|
![]() | ToString |
Override toString method
(Overrides ObjectToString.) |

Name | Description | |
---|---|---|
![]() ![]() | DEFAULTCOLOR |
Default Color (foreground or background) as constant
|
