Class
SpreadPatternFill

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:

cs-api-definition
public class SpreadPatternFill : ISpreadFill

Inheritance: objectSpreadPatternFill

Implements: ISpreadFill

Constructors

SpreadPatternFill(SpreadPatternType)

Initializes a new instance of the SpreadPatternFill class.

Declaration

cs-api-definition
public SpreadPatternFill(SpreadPatternType patternType)

Parameters

patternType

SpreadPatternType

Type of the pattern.

SpreadPatternFill(SpreadPatternType, SpreadThemableColor, SpreadThemableColor)

Initializes a new instance of the SpreadPatternFill class.

Declaration

cs-api-definition
public SpreadPatternFill(SpreadPatternType patternType, SpreadThemableColor patternColor, SpreadThemableColor backgroundColor)

Parameters

patternType

SpreadPatternType

Type of the pattern.

patternColor

SpreadThemableColor

Color of the pattern.

backgroundColor

SpreadThemableColor

Color of the background.

Properties

BackgroundColor

Background color behind the pattern.

Declaration

cs-api-definition
public SpreadThemableColor BackgroundColor { get; }

Property Value

SpreadThemableColor

The color of the background.

PatternColor

Foreground (pattern) color.

Declaration

cs-api-definition
public SpreadThemableColor PatternColor { get; }

Property Value

SpreadThemableColor

The color of the pattern.

PatternType

Pattern style applied to the fill.

Declaration

cs-api-definition
public SpreadPatternType PatternType { get; }

Property Value

SpreadPatternType

The type of the pattern.

Methods

CreateSolidFill(SpreadColor)

Creates a solid fill from an RGB color.

Declaration

cs-api-definition
public static SpreadPatternFill CreateSolidFill(SpreadColor color)

Parameters

color

SpreadColor

The color of the pattern.

Returns

SpreadPatternFill

Solid pattern fill.

CreateSolidFill(SpreadThemableColor)

Creates a solid fill from a themable color.

Declaration

cs-api-definition
public static SpreadPatternFill CreateSolidFill(SpreadThemableColor color)

Parameters

color

SpreadThemableColor

The color of the pattern.

Returns

SpreadPatternFill

Solid pattern fill.

Equals(object)

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

Declaration

cs-api-definition
public override bool Equals(object obj)

Parameters

obj

object

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)

GetHashCode()

Serves as a hash function for a particular type.

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

A hash code for the current object.

Overrides object.GetHashCode()