Class
SpreadStreamCellStyle

A wrapper class used to transform the WPF types to types compatible with the SpreadStreamProcessing needs.

Definition

Namespace:Telerik.Windows.Controls.GridView.SpreadsheetStreamingExport

Assembly:Telerik.Windows.Controls.GridView.SpreadsheetStreamingExport.dll

Syntax:

cs-api-definition
public class SpreadStreamCellStyle

Inheritance: objectSpreadStreamCellStyle

Constructors

SpreadStreamCellStyle()

Initializes a new instance of the SpreadStreamCellStyle class.

Declaration

cs-api-definition
public SpreadStreamCellStyle()

SpreadStreamCellStyle(SpreadCellFormat, Color, Color, FontFamily, double?, bool?, bool?, bool?, SpreadHorizontalAlignment, SpreadVerticalAlignment, SpreadUnderlineType)

Initializes a new instance of the SpreadStreamCellStyle class.

Declaration

cs-api-definition
public SpreadStreamCellStyle(SpreadCellFormat cellFormat, Color backColor, Color foreground, FontFamily fontFamily, double? fontSize, bool? isBold, bool? isItalic, bool? isWrapped, SpreadHorizontalAlignment horizontalAlignment, SpreadVerticalAlignment verticalAlignment, SpreadUnderlineType underlineType)

Parameters

cellFormat

SpreadCellFormat

Current excel cell.

backColor

Color

BackColor of cell.

foreground

Color

ForeColor of cell.

fontFamily

FontFamily

FontFamily of cell.

fontSize

double?

Font size of cell.

isBold

bool?

Is text bold.

isItalic

bool?

Is text italic.

isWrapped

bool?

Is text wrapped.

horizontalAlignment

SpreadHorizontalAlignment

Horizontal text alignment.

verticalAlignment

SpreadVerticalAlignment

Vertical text alignment.

underlineType

SpreadUnderlineType

Is text underlined.

Properties

Background

Gets or sets the fill of the excel cell.

Declaration

cs-api-definition
public Color Background { get; set; }

Property Value

Color

The fill.

CellFormat

Gets or sets the cell format.

Declaration

cs-api-definition
public SpreadCellFormat CellFormat { get; set; }

Property Value

SpreadCellFormat

The cell format.

FontFamily

Gets or sets the font family of the excel cell.

Declaration

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

Property Value

FontFamily

The font family.

FontSize

Gets or sets the font size of the text.

Declaration

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

Property Value

double?

The FontSize.

Foreground

Gets or sets the ForeColor of the excel cell.

Declaration

cs-api-definition
public Color Foreground { get; set; }

Property Value

Color

The ForeColor.

HorizontalAlignment

Gets or sets the horizontal alignment.

Declaration

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

Property Value

SpreadHorizontalAlignment

The HorizontalAlignment.

IsBold

Gets or sets the IsBold property of the cells.

Declaration

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

Property Value

bool?

The IsBold.

IsItalic

Gets or sets the isItalic property of the cells.

Declaration

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

Property Value

bool?

The IsItalic.

IsWrapped

Gets or sets the IsWrapped property of the cells.

Declaration

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

Property Value

bool?

The IsWrapped.

UnderlineType

Gets or sets the UnderlineType of the text in the cells.

Declaration

cs-api-definition
public SpreadUnderlineType UnderlineType { get; set; }

Property Value

SpreadUnderlineType

The Underline.

VerticalAlignment

Gets or sets the vertical alignment.

Declaration

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

Property Value

SpreadVerticalAlignment

The VerticalAlignment.