ClassCellStyleInfo
A wrapper class used to transform the Windows forms types to types compatible with the CellSelection object needs
Definition
Namespace:Telerik.WinControls.Export
Assembly:TelerikExport.dll
Syntax:
public class CellStyleInfo : ISpreadExportCellStyleInfo
Inheritance: objectCellStyleInfo
Implements:
Constructors
CellStyleInfo(CellSelection, Color, Color, FontFamily, double, bool, bool, bool, ContentAlignment, bool, BorderBoxStyle, Color, Color, Color, Color, Color, Orientation)
Initializes a new instance of the CellStyleInfo class.
Declaration
public CellStyleInfo(CellSelection currentExcelCell, 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, Orientation textOrientation = Orientation.Horizontal)
Parameters
currentExcelCell
Current excel cell.
backColor
BackColor of cell.
foreColor
ForeColor of cell.
fontFamily
FontFamily of cell.
fontSize
Font size of cell.
isBold
Is text bold.
isItalic
Is text italic.
underline
Is text underlined.
textAlignment
Text alignment.
textWrap
Is text wrapped.
borderBoxStyle
Border box style.
borderColor
Color of border.
borderTopColor
Color of top border.
borderBottomColor
Color of bottom border.
borderRightColor
Color of right border.
borderLeftColor
Color of left border.
textOrientation
The text orientation.
CellStyleInfo(CellSelection, Worksheet)
Initializes a new instance of the CellStyleInfo class.
Declaration
public CellStyleInfo(CellSelection currentExcelCell, Worksheet worksheet)
Parameters
currentExcelCell
The current excel cell.
worksheet
The worksheet.
Properties
BackColor
Gets or sets the fill of the excel cell.
Declaration
public Color BackColor { get; set; }
Property Value
The fill.
Implements
Borders
Gets or sets the borders.
Declaration
public object Borders { get; set; }
Property Value
The borders.
Implements
FontFamily
Gets or sets the font family of the excel cell.
Declaration
public FontFamily FontFamily { get; set; }
Property Value
The font family.
Implements
FontSize
Gets or sets the size of the font of the excel cell.
Declaration
public double FontSize { get; set; }
Property Value
The size of the font in points (pt). It will be automatically converted to the Device Independent Pixels, when setting.
Implements
ForeColor
Gets or sets the ForeColor of the excel cell.
Declaration
public Color ForeColor { get; set; }
Property Value
The ForeColor.
Implements
IsBold
Gets or sets a value indicating whether this text of the excel cell is bold.
Declaration
public bool IsBold { get; set; }
Property Value
true if the text of the excel cell is bold; otherwise, false.
Implements
IsItalic
Gets or sets a value indicating whether the text of the excel cell is italic.
Declaration
public bool IsItalic { get; set; }
Property Value
true if the text of the excel cell is italic; otherwise, false.
Implements
TextAlignment
Gets or sets the text alignment.
Declaration
public ContentAlignment TextAlignment { get; set; }
Property Value
The text alignment.
Implements
TextOrientation
Gets or sets the orientation of the text. The available values are Horizontal(default) or vertical. Note that the TextOrientation is currently supported only when exporting to XLSX format.
Declaration
public Orientation TextOrientation { get; set; }
Property Value
Implements
TextWrap
Gets or sets a value indicating whether the text of the excel cell is wrapped.
Declaration
public bool TextWrap { get; set; }
Property Value
true if the text of the excel cell is wrapped; otherwise, false.
Implements