Fill Class |
public class Fill : AbstractStyle
The Fill type exposes the following members.
| Name | Description | |
|---|---|---|
| Fill | ||
| Fill | Default constructor | |
| Fill(String, FillFillType) | Constructor with color value and fill type | |
| Fill(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 | |
| 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) |
Returns whether two instances are the same
(Overrides ObjectEquals(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 |