Class
SpreadStreamCellStyleInfo

A wrapper class used to transform the Windows forms types to types compatible with the SpreadStreamProcessing needs

Definition

Namespace:Telerik.WinControls.Export

Assembly:TelerikExport.dll

Syntax:

cs-api-definition
public class SpreadStreamCellStyleInfo : ISpreadStreamExportCellStyleInfo

Inheritance: objectSpreadStreamCellStyleInfo

Implements: ISpreadStreamExportCellStyleInfo

Constructors

SpreadStreamCellStyleInfo(SpreadCellFormat, Color, Color, FontFamily, double, bool, bool, bool, ContentAlignment, bool, BorderBoxStyle, Color, Color, Color, Color, Color)

Initializes a new instance of the SpreadStreamCellStyleInfo class.

Declaration

cs-api-definition
public SpreadStreamCellStyleInfo(SpreadCellFormat cellFormat, Color backColor, Color foreColor, FontFamily fontFamily, double fontSize, bool isBold, bool isItalic, bool underline, ContentAlignment textAlignment, bool textWrap, BorderBoxStyle borderBoxStyle, Color borderColor, Color borderTopColor, Color borderBottomColor, Color borderRightColor, Color borderLeftColor)

Parameters

cellFormat

SpreadCellFormat

Current excel cell.

backColor

Color

BackColor of cell.

foreColor

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.

underline

bool

Is text underlined.

textAlignment

ContentAlignment

Text alignment.

textWrap

bool

Is text wrapped.

borderBoxStyle

BorderBoxStyle

Border box style.

borderColor

Color

Color of border.

borderTopColor

Color

Color of top border.

borderBottomColor

Color

Color of bottom border.

borderRightColor

Color

Color of right border.

borderLeftColor

Color

Color of left border.

SpreadStreamCellStyleInfo(SpreadCellFormat, ISpreadStreamExportCellStyleInfo)

Initializes a new instance of the SpreadStreamCellStyleInfo class.

Declaration

cs-api-definition
public SpreadStreamCellStyleInfo(SpreadCellFormat cellFormat, ISpreadStreamExportCellStyleInfo cellStyle)

Parameters

cellFormat

SpreadCellFormat

The cell format.

cellStyle

ISpreadStreamExportCellStyleInfo

The cell style.

SpreadStreamCellStyleInfo(SpreadCellFormat, IWorkbookExporter)

Initializes a new instance of the SpreadStreamCellStyleInfo class.

Declaration

cs-api-definition
public SpreadStreamCellStyleInfo(SpreadCellFormat cellFormat, IWorkbookExporter workbook)

Parameters

cellFormat

SpreadCellFormat

The cell format.

workbook

IWorkbookExporter

The worksheet.

Properties

BackColor

Gets or sets the fill of the excel cell.

Declaration

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

Property Value

Color

The fill.

Implements ISpreadStreamExportCellStyleInfo.BackColor

BottomBorder

Gets or sets the bottom border.

Declaration

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

Property Value

object

The bottom border.

Implements ISpreadStreamExportCellStyleInfo.BottomBorder

CellFormat

Gets or sets the cell format.

Declaration

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

Property Value

SpreadCellFormat

The cell format.

DiagonalDownBorder

Gets or sets the diagonal down border.

Declaration

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

Property Value

object

The diagonal down border.

Implements ISpreadStreamExportCellStyleInfo.DiagonalDownBorder

DiagonalUpBorder

Gets or sets the diagonal up border.

Declaration

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

Property Value

object

The diagonal up border.

Implements ISpreadStreamExportCellStyleInfo.DiagonalUpBorder

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.

Implements ISpreadStreamExportCellStyleInfo.FontFamily

FontSize

Gets or sets the size of the font of the excel cell.

Declaration

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

Property Value

double

The size of the font in points (pt). It will be automatically converted to the Device Independent Pixels, when setting.

Implements ISpreadStreamExportCellStyleInfo.FontSize

ForeColor

Gets or sets the ForeColor of the excel cell.

Declaration

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

Property Value

Color

The ForeColor.

Implements ISpreadStreamExportCellStyleInfo.ForeColor

IsBold

Gets or sets a value indicating whether this text of the excel cell is bold.

Declaration

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

Property Value

bool

true if the text of the excel cell is bold; otherwise, false.

Implements ISpreadStreamExportCellStyleInfo.IsBold

IsItalic

Gets or sets a value indicating whether the text of the excel cell is italic.

Declaration

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

Property Value

bool

true if the text of the excel cell is italic; otherwise, false.

Implements ISpreadStreamExportCellStyleInfo.IsItalic

LeftBorder

Gets or sets the left border.

Declaration

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

Property Value

object

The left border.

Implements ISpreadStreamExportCellStyleInfo.LeftBorder

NumberFormat

Gets or sets the number format.

Declaration

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

Property Value

string

The number format.

Implements ISpreadStreamExportCellStyleInfo.NumberFormat

RightBorder

Gets or sets the right border.

Declaration

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

Property Value

object

The right border.

Implements ISpreadStreamExportCellStyleInfo.RightBorder

TextAlignment

Gets or sets the text alignment.

Declaration

cs-api-definition
public ContentAlignment TextAlignment { get; set; }

Property Value

ContentAlignment

The text alignment.

Implements ISpreadStreamExportCellStyleInfo.TextAlignment

TextWrap

Gets or sets a value indicating whether the text of the excel cell is wrapped.

Declaration

cs-api-definition
public bool TextWrap { get; set; }

Property Value

bool

true if the text of the excel cell is wrapped; otherwise, false.

Implements ISpreadStreamExportCellStyleInfo.TextWrap

TopBorder

Gets or sets the top border.

Declaration

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

Property Value

object

The top border.

Implements ISpreadStreamExportCellStyleInfo.TopBorder

Underline

Gets or sets whether the text of the excel cell is underline.

Declaration

cs-api-definition
public bool Underline { get; set; }

Property Value

bool

The underline type.

Implements ISpreadStreamExportCellStyleInfo.Underline