Class
SpreadBorder

Encapsulates style and color for a single cell border edge used when rendering or exporting spreadsheet cells.

Definition

Namespace:Telerik.Documents.SpreadsheetStreaming

Assembly:Telerik.Documents.SpreadsheetStreaming.dll

Syntax:

cs-api-definition
public class SpreadBorder

Inheritance: objectSpreadBorder

Constructors

SpreadBorder(SpreadBorderStyle, SpreadThemableColor)

Initialize a border definition with the specified style and themable color.

Declaration

cs-api-definition
public SpreadBorder(SpreadBorderStyle style, SpreadThemableColor color)

Parameters

style

SpreadBorderStyle

The border style.

color

SpreadThemableColor

The border color.

Properties

Color

Gets the themable color used to render the border.

Declaration

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

Property Value

SpreadThemableColor

The themable color.

Style

Gets the border line style applied at this edge.

Declaration

cs-api-definition
public SpreadBorderStyle Style { get; }

Property Value

SpreadBorderStyle

The border style.

Methods

Equals(object)

Determines value equality with another border by comparing style and color.

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 style and color match; otherwise false.

Overrides object.Equals(object)

GetHashCode()

Generates a combined hash code based on style and color.

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

A hash code for the current object.

Overrides object.GetHashCode()