Class CellStyleInfo
A wrapper class used to transform the Windows forms types to types compatible with the CellSelection object needs
Inheritance
Inherited Members
Namespace: Telerik.WinControls.Export
Assembly: TelerikExport.dll
Syntax
public class CellStyleInfo : ISpreadExportCellStyleInfo
Constructors
CellStyleInfo(CellSelection, Color, Color, FontFamily, Double, Boolean, Boolean, Boolean, ContentAlignment, Boolean, BorderBoxStyle, Color, Color, Color, Color, Color, Orientation)
Initializes a new instance of the Cell
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)
Parameters
Cell Current excel cell. |
System. BackColor of cell. |
System. ForeColor of cell. |
System. FontFamily of cell. |
System. Font size of cell. |
System. Is text bold. |
System. Is text italic. |
System. Is text underlined. |
System. Text alignment. |
System. Is text wrapped. |
Border Border box style. |
System. Color of border. |
System. Color of top border. |
System. Color of bottom border. |
System. Color of right border. |
System. Color of left border. |
System. The text orientation. |
CellStyleInfo(CellSelection, Worksheet)
Initializes a new instance of the Cell
Declaration
public CellStyleInfo(CellSelection currentExcelCell, Worksheet worksheet)
Parameters
Cell The current excel cell. |
Worksheet
worksheet
The worksheet. |
Properties
BackColor
Gets or sets the fill of the excel cell.
Declaration
public Color BackColor { get; set; }
Property Value
System. The fill. |
Implements
Borders
Gets or sets the borders.
Declaration
public object Borders { get; set; }
Property Value
System. The borders. |
Implements
FontFamily
Gets or sets the font family of the excel cell.
Declaration
public FontFamily FontFamily { get; set; }
Property Value
System. 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
System. 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
System. 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
System.
|
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
System.
|
Implements
TextAlignment
Gets or sets the text alignment.
Declaration
public ContentAlignment TextAlignment { get; set; }
Property Value
System. 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
System.
|
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
System.
|
Implements
Underline
Gets or sets whether the text of the excel cell is underline.
Declaration
public bool Underline { get; set; }
Property Value
System. The underline type. |