New to Telerik Document ProcessingStart a free 30-day trial

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:

C#
public class SpreadPatternFill : ISpreadFill

Inheritance: objectSpreadPatternFill

Implements: ISpreadFill

Constructors

Initializes a new instance of the SpreadPatternFill class.

C#
public SpreadPatternFill(SpreadPatternType patternType, SpreadThemableColor patternColor, SpreadThemableColor backgroundColor)
Parameters:patternTypeSpreadPatternType

Type of the pattern.

patternColorSpreadThemableColor

Color of the pattern.

backgroundColorSpreadThemableColor

Color of the background.

Initializes a new instance of the SpreadPatternFill class.

C#
public SpreadPatternFill(SpreadPatternType patternType)
Parameters:patternTypeSpreadPatternType

Type of the pattern.

Properties

Background color behind the pattern.

C#
public SpreadThemableColor BackgroundColor { get; }
Property Value:

The color of the background.

Foreground (pattern) color.

C#
public SpreadThemableColor PatternColor { get; }
Property Value:

The color of the pattern.

Pattern style applied to the fill.

C#
public SpreadPatternType PatternType { get; }
Property Value:

The type of the pattern.

Methods

Creates a solid fill from an RGB color.

C#
public static SpreadPatternFill CreateSolidFill(SpreadColor color)
Parameters:colorSpreadColor

The color of the pattern.

Returns:

SpreadPatternFill

Solid pattern fill.

Creates a solid fill from a themable color.

C#
public static SpreadPatternFill CreateSolidFill(SpreadThemableColor color)
Parameters:colorSpreadThemableColor

The color of the pattern.

Returns:

SpreadPatternFill

Solid pattern fill.

Determines whether the specified object is equal to the current object.

C#
public override bool Equals(object obj)
Parameters:objobject

The object to compare with the current object.

Returns:

bool

Returns true if the specified object is equal to the current object; otherwise, false.

Overrides: object.Equals(object)

Serves as a hash function for a particular type.

C#
public override int GetHashCode()
Returns:

int

A hash code for the current object.

Overrides: object.GetHashCode()