ClassPatternFill
Defines a cell background fill using pattern types, foreground colors, and background colors.
Definition
Namespace:Telerik.Windows.Documents.Spreadsheet.Model
Assembly:Telerik.Windows.Documents.Spreadsheet.dll
Syntax:
public class PatternFill : IFill
Inheritance: objectPatternFill
Implements:
Constructors
PatternFill(PatternType, Color, Color)
Initializes a new PatternFill with the specified pattern type, foreground color, and background color.
Declaration
public PatternFill(PatternType patternType, Color patternColor, Color backgroundColor)
Parameters
patternType
Type of the pattern.
patternColor
Color
Color of the pattern.
backgroundColor
Color
Color of the background.
PatternFill(PatternType, ThemableColor, ThemableColor)
Initializes a new PatternFill with the specified pattern type and themable colors.
Declaration
public PatternFill(PatternType patternType, ThemableColor patternColor, ThemableColor backgroundColor)
Parameters
patternType
Type of the pattern.
patternColor
Color of the pattern.
backgroundColor
Color of the background.
Fields
Default
Provides a transparent solid fill used as the default for cells with no background.
Properties
BackgroundColor
Gets the background color visible between pattern elements.
Declaration
public ThemableColor BackgroundColor { get; }
Property Value
The color of the background.
PatternColor
Gets the foreground color used for the pattern elements, such as stripes or dots.
Declaration
public ThemableColor PatternColor { get; }
Property Value
The color of the pattern.
PatternType
Gets the pattern style applied to the fill, such as solid, striped, or crosshatch.
Declaration
public PatternType PatternType { get; }
Property Value
The type of the pattern.
Methods
CreateSolidFill(Color)
Creates a solid fill with the specified color, commonly used for cell backgrounds.
Declaration
public static IFill CreateSolidFill(Color color)
Parameters
color
Color
The color.
Returns
The fill.
CreateSolidFill(ThemableColor)
Creates a solid fill with the specified themable color, allowing theme-based color changes.
Declaration
public static IFill CreateSolidFill(ThemableColor color)
Parameters
color
The themable color.
Returns
The fill.
GetHashCode()
Serves as a hash function for a particular type.