Click or drag to resize
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: 3.2.1+e0edc719a6aeecf6c989e5a57750c75d6f3175bb
Syntax
C#
public class Fill : AbstractStyle

The StyleFill type exposes the following members.

Constructors
 NameDescription
Private methodStatic memberStyleFill 
Public methodStyleFill Initializes a new instance of the StyleFill class
Public methodStyleFill(String, StyleFillFillType) Initializes a new instance of the StyleFill class
Public methodStyleFill(String, String) Initializes a new instance of the StyleFill class
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 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 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(AbstractStyle) Method to compare two objects for sorting purpose
(Inherited from AbstractStyle)
Public methodEquals(Object)Determines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCode Returns a hash code for this instance
(Overrides ObjectGetHashCode)
Public methodStatic memberGetPatternName Gets the pattern name from the enum
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates 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)
Public methodStatic memberValidateColor Validates the passed string, whether it is a valid RGB value that can be used for Fills or Fonts
Top
Fields
 NameDescription
Public fieldStatic memberDEFAULT_COLOR Default Color (foreground or background)
Public fieldStatic memberDEFAULT_INDEXED_COLOR Default index color
Public fieldStatic memberDEFAULT_PATTERN_FILL Default pattern
Top
See Also