Class
SpreadCellFormatBase

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:

cs-api-definition
public abstract class SpreadCellFormatBase

Inheritance: objectSpreadCellFormatBase

Derived Classes: SpreadCellFormatSpreadCellStyle

Constructors

SpreadCellFormatBase()

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.

Declaration

cs-api-definition
protected SpreadCellFormatBase()

Properties

BottomBorder

Bottom border applied to the cell.

Declaration

cs-api-definition
public SpreadBorder BottomBorder { get; set; }

Property Value

SpreadBorder

The bottom border.

DiagonalDownBorder

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

Declaration

cs-api-definition
public SpreadBorder DiagonalDownBorder { get; set; }

Property Value

SpreadBorder

The diagonal down border.

DiagonalUpBorder

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

Declaration

cs-api-definition
public SpreadBorder DiagonalUpBorder { get; set; }

Property Value

SpreadBorder

The diagonal up border.

Fill

Background fill (pattern or gradient) for the cell.

Declaration

cs-api-definition
public ISpreadFill Fill { get; set; }

Property Value

ISpreadFill

The fill.

FontFamily

Font family (theme-based or explicit).

Declaration

cs-api-definition
public SpreadThemableFontFamily FontFamily { get; set; }

Property Value

SpreadThemableFontFamily

The font family.

FontSize

Font size in points.

Declaration

cs-api-definition
public double? FontSize { get; set; }

Property Value

double?

The size of the font in points.

ForeColor

Font (foreground) color.

Declaration

cs-api-definition
public SpreadThemableColor ForeColor { get; set; }

Property Value

SpreadThemableColor

The fore color.

HorizontalAlignment

Horizontal alignment of the cell content.

Declaration

cs-api-definition
public SpreadHorizontalAlignment? HorizontalAlignment { get; set; }

Property Value

SpreadHorizontalAlignment?

The horizontal alignment.

Indent

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

Declaration

cs-api-definition
public int? Indent { get; set; }

Property Value

int?

The indent.

IsBold

Indicates bold font weight.

Declaration

cs-api-definition
public bool? IsBold { get; set; }

Property Value

bool?

The value indicating whether the text bold.

IsItalic

Indicates italic font style.

Declaration

cs-api-definition
public bool? IsItalic { get; set; }

Property Value

bool?

The value indicating whether the text italic.

LeftBorder

Left border applied to the cell.

Declaration

cs-api-definition
public SpreadBorder LeftBorder { get; set; }

Property Value

SpreadBorder

The left border.

NumberFormat

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

Declaration

cs-api-definition
public string NumberFormat { get; set; }

Property Value

string

The number format.

RightBorder

Right border applied to the cell.

Declaration

cs-api-definition
public SpreadBorder RightBorder { get; set; }

Property Value

SpreadBorder

The right border.

TopBorder

Top border applied to the cell.

Declaration

cs-api-definition
public SpreadBorder TopBorder { get; set; }

Property Value

SpreadBorder

The top border.

Underline

Underline style applied to the text.

Declaration

cs-api-definition
public SpreadUnderlineType? Underline { get; set; }

Property Value

SpreadUnderlineType?

The underline type.

VerticalAlignment

Vertical alignment of the cell content.

Declaration

cs-api-definition
public SpreadVerticalAlignment? VerticalAlignment { get; set; }

Property Value

SpreadVerticalAlignment?

The vertical alignment.

WrapText

Indicates whether text wraps to multiple lines within the cell.

Declaration

cs-api-definition
public bool? WrapText { get; set; }

Property Value

bool?

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