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

Base class encapsulating cell formatting facets (borders, fill, font, number format, alignment, text layout) with flags indicating which aspects are applied.

Definition

Namespace:Telerik.Documents.SpreadsheetStreaming

Assembly:Telerik.Documents.SpreadsheetStreaming.dll

Syntax:

C#
public abstract class SpreadCellFormatBase

Inheritance: objectSpreadCellFormatBase

Derived Classes: SpreadCellFormatSpreadCellStyle

Constructors

Initializes a new instance of the SpreadCellFormatBase class. All formatting-related properties and apply flags are unset by default; set individual properties (e.g., borders, fill, font, alignment, number format) to opt-in specific styling.

C#
protected SpreadCellFormatBase()

Properties

Bottom border applied to the cell.

C#
public SpreadBorder BottomBorder { get; set; }
Property Value:

The bottom border.

Diagonal-down border (top‑left to bottom‑right) for crossed diagonal effects.

C#
public SpreadBorder DiagonalDownBorder { get; set; }
Property Value:

The diagonal down border.

Diagonal-up border (bottom‑left to top‑right) for crossed diagonal effects.

C#
public SpreadBorder DiagonalUpBorder { get; set; }
Property Value:

The diagonal up border.

Background fill (pattern or gradient) for the cell.

C#
public ISpreadFill Fill { get; set; }
Property Value:

The fill.

Font family (theme-based or explicit).

C#
public SpreadThemableFontFamily FontFamily { get; set; }
Property Value:

The font family.

Font size in points.

C#
public double? FontSize { get; set; }
Property Value:

The size of the font in points.

Font (foreground) color.

C#
public SpreadThemableColor ForeColor { get; set; }
Property Value:

The fore color.

Horizontal alignment of the cell content.

C#
public SpreadHorizontalAlignment? HorizontalAlignment { get; set; }
Property Value:

The horizontal alignment.

Indentation level (number of indents) when left-aligned.

C#
public int? Indent { get; set; }
Property Value:

The indent.

Indicates bold font weight.

C#
public bool? IsBold { get; set; }
Property Value:

The value indicating whether the text bold.

Indicates italic font style.

C#
public bool? IsItalic { get; set; }
Property Value:

The value indicating whether the text italic.

Left border applied to the cell.

C#
public SpreadBorder LeftBorder { get; set; }
Property Value:

The left border.

Number format code controlling rendering of numeric, date, and time values.

C#
public string NumberFormat { get; set; }
Property Value:

The number format.

Right border applied to the cell.

C#
public SpreadBorder RightBorder { get; set; }
Property Value:

The right border.

Top border applied to the cell.

C#
public SpreadBorder TopBorder { get; set; }
Property Value:

The top border.

Underline style applied to the text.

C#
public SpreadUnderlineType? Underline { get; set; }
Property Value:

The underline type.

Vertical alignment of the cell content.

C#
public SpreadVerticalAlignment? VerticalAlignment { get; set; }
Property Value:

The vertical alignment.

Indicates whether text wraps to multiple lines within the cell.

C#
public bool? WrapText { get; set; }
Property Value:

The value indicating if the text in a cell should be line-wrapped within the cell.