ClassSpreadPatternFill
Pattern-based cell fill defined by a pattern style plus optional pattern and background colors.
Definition
Namespace:Telerik.Documents.SpreadsheetStreaming
Assembly:Telerik.Documents.SpreadsheetStreaming.dll
Syntax:
public class SpreadPatternFill : ISpreadFill
Inheritance: objectSpreadPatternFill
Implements:
Constructors
SpreadPatternFill(SpreadPatternType)
Initializes a new instance of the SpreadPatternFill class.
Declaration
public SpreadPatternFill(SpreadPatternType patternType)
Parameters
patternType
Type of the pattern.
SpreadPatternFill(SpreadPatternType, SpreadThemableColor, SpreadThemableColor)
Initializes a new instance of the SpreadPatternFill class.
Declaration
public SpreadPatternFill(SpreadPatternType patternType, SpreadThemableColor patternColor, SpreadThemableColor backgroundColor)
Parameters
patternType
Type of the pattern.
patternColor
Color of the pattern.
backgroundColor
Color of the background.
Properties
BackgroundColor
Background color behind the pattern.
Declaration
public SpreadThemableColor BackgroundColor { get; }
Property Value
The color of the background.
PatternColor
Foreground (pattern) color.
Declaration
public SpreadThemableColor PatternColor { get; }
Property Value
The color of the pattern.
PatternType
Pattern style applied to the fill.
Declaration
public SpreadPatternType PatternType { get; }
Property Value
The type of the pattern.
Methods
CreateSolidFill(SpreadColor)
Creates a solid fill from an RGB color.
Declaration
public static SpreadPatternFill CreateSolidFill(SpreadColor color)
Parameters
color
The color of the pattern.
Returns
Solid pattern fill.
CreateSolidFill(SpreadThemableColor)
Creates a solid fill from a themable color.
Declaration
public static SpreadPatternFill CreateSolidFill(SpreadThemableColor color)
Parameters
color
The color of the pattern.
Returns
Solid pattern fill.
GetHashCode()
Serves as a hash function for a particular type.