New to Telerik UI for WinFormsStart a free 30-day trial

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:

C#
public class SpreadBorder

Inheritance: objectSpreadBorder

Constructors

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

C#
public SpreadBorder(SpreadBorderStyle style, SpreadThemableColor color)
Parameters:styleSpreadBorderStyle

The border style.

colorSpreadThemableColor

The border color.

Properties

Gets the themable color used to render the border.

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

The themable color.

Gets the border line style applied at this edge.

C#
public SpreadBorderStyle Style { get; }
Property Value:

The border style.

Methods

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

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

The object to compare with the current object.

Returns:

bool

Returns true if style and color match; otherwise false.

Overrides: object.Equals(object)

Generates a combined hash code based on style and color.

C#
public override int GetHashCode()
Returns:

int

A hash code for the current object.

Overrides: object.GetHashCode()