PatternFill
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
Initializes a new PatternFill with the specified pattern type, foreground color, and background color.
public PatternFill(PatternType patternType, Color patternColor, Color backgroundColor)
Type of the pattern.
patternColorColorColor of the pattern.
backgroundColorColorColor of the background.
Initializes a new PatternFill with the specified pattern type and themable colors.
public PatternFill(PatternType patternType, ThemableColor patternColor, ThemableColor backgroundColor)
Type of the pattern.
patternColorThemableColorColor of the pattern.
backgroundColorThemableColorColor of the background.
Fields
Provides a transparent solid fill used as the default for cells with no background.
public static readonly PatternFill Default
Properties
Gets the background color visible between pattern elements.
public ThemableColor BackgroundColor { get; }
The color of the background.
Gets the foreground color used for the pattern elements, such as stripes or dots.
public ThemableColor PatternColor { get; }
The color of the pattern.
Gets the pattern style applied to the fill, such as solid, striped, or crosshatch.
public PatternType PatternType { get; }
The type of the pattern.
Methods
Creates a solid fill with the specified color, commonly used for cell backgrounds.
public static IFill CreateSolidFill(Color color)
The color.
Returns:The fill.
Creates a solid fill with the specified themable color, allowing theme-based color changes.
public static IFill CreateSolidFill(ThemableColor color)
The themable color.
Returns:The fill.