ClassCellBorder
Defines the style, color, and thickness of a cell border edge.
Definition
Namespace:Telerik.Windows.Documents.Spreadsheet.Model
Assembly:Telerik.Windows.Documents.Spreadsheet.dll
Syntax:
public class CellBorder
Inheritance: objectCellBorder
Constructors
CellBorder(CellBorderStyle, ThemableColor)
Initializes a new CellBorder with the specified style and color.
Declaration
public CellBorder(CellBorderStyle style, ThemableColor color)
Parameters
style
The style.
color
The color.
Fields
Default
The default cell border.
Properties
Color
Gets the color of this border, which may reference a theme color.
Declaration
public ThemableColor Color { get; }
Property Value
The color.
Style
Gets the line style of this border (solid, dashed, dotted, etc.).
Declaration
public CellBorderStyle Style { get; }
Property Value
The style.
Methods
GetHashCode()
Serves as a hash function for a particular type.
GetThicknessByBorderStyle(CellBorderStyle)
Calculates the line thickness for the specified border style.
Declaration
public static double GetThicknessByBorderStyle(CellBorderStyle borderStyle)
Parameters
borderStyle
The border style.
Returns
The thickness.
GetWithMaxPriority(CellBorder, CellBorder, ThemeColorScheme)
Compares two borders and returns the one with higher visual priority based on thickness and color intensity.
Declaration
public static CellBorder GetWithMaxPriority(CellBorder leftBorder, CellBorder rightBorder, ThemeColorScheme colorScheme)
Parameters
leftBorder
The left border.
rightBorder
The right border.
colorScheme
The color scheme.
Returns
The border with higher priority according to the color scheme.
Operators
operator !=(CellBorder, CellBorder)
Implements the not equals operator.
Declaration
public static bool operator !=(CellBorder first, CellBorder second)
Parameters
first
The first value.
second
The second value.
Returns
The result of the operator.
operator ==(CellBorder, CellBorder)
Implements the equals operator.
Declaration
public static bool operator ==(CellBorder first, CellBorder second)
Parameters
first
The first value.
second
The second value.
Returns
The result of the operator.