Fill Object

This topic describes the Fill object used for setting a cell's color attributes.

Object properties

  • BackgroundColor - an object that specifies the cell's background color.

  • ForegroundColor - an object that specifies the cell's foreground color.

  • PatternType - a string value that specifies the pattern type that is used to fill the cell content. Available patterns are:

    1. None
    2. Solid
    3. MediumGray
    4. DarkGray
    5. LightGray
    6. DarkHorizontal
    7. DarkVertical
    8. DarkDown
    9. DarkUp
    10. DarkGrid
    11. DarkTrellis
    12. LightHorizontal
    13. LightVertical
    14. LightDown
    15. LightGrid
    16. LightTrellis
    17. Gray125
    18. Gray0625
  • FillType - a string value that specifies how cell content is filled. The available variants are:

    1. Pattern - the pattern specified by the PatternType property is used to fill cell content.

    2. Gradient - the gradient is used to fill cell content.