StyleFill Class |
public class Fill : AbstractStyle
The StyleFill type exposes the following members.
Name | Description | |
---|---|---|
StyleFill | ||
StyleFill | Initializes a new instance of the StyleFill class | |
StyleFill(String, StyleFillFillType) | Initializes a new instance of the StyleFill class | |
StyleFill(String, String) | Initializes a new instance of the StyleFill class |
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 | |
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 | |
---|---|---|
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(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) | |
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) | |
ValidateColor | Validates the passed string, whether it is a valid RGB value that can be used for Fills or Fonts |
Name | Description | |
---|---|---|
DEFAULT_COLOR | Default Color (foreground or background) | |
DEFAULT_INDEXED_COLOR | Default index color | |
DEFAULT_PATTERN_FILL | Default pattern |