CellBorder
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
Initializes a new CellBorder with the specified style and color.
public CellBorder(CellBorderStyle style, ThemableColor color)
The style.
colorThemableColorThe color.
Fields
The default cell border.
public static readonly CellBorder Default
Methods
Calculates the line thickness for the specified border style.
public static double GetThicknessByBorderStyle(CellBorderStyle borderStyle)
The border style.
Returns:The thickness.
Compares two borders and returns the one with higher visual priority based on thickness and color intensity.
public static CellBorder GetWithMaxPriority(CellBorder leftBorder, CellBorder rightBorder, ThemeColorScheme colorScheme)
The left border.
rightBorderCellBorderThe right border.
colorSchemeThemeColorSchemeThe color scheme.
Returns:The border with higher priority according to the color scheme.
Operators
Implements the not equals operator.
public static bool operator !=(CellBorder first, CellBorder second)
The first value.
secondCellBorderThe second value.
Returns:The result of the operator.
Implements the equals operator.
public static bool operator ==(CellBorder first, CellBorder second)
The first value.
secondCellBorderThe second value.
Returns:The result of the operator.
Properties
Gets the color of this border, which may reference a theme color.
public ThemableColor Color { get; }
The color.
Gets the line style of this border (solid, dashed, dotted, etc.).
public CellBorderStyle Style { get; }
The style.