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 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)
Parameters
CellSelection
currentExcelCell
Current excel cell. |
System.Drawing.Color
backColor
BackColor of cell. |
System.Drawing.Color
foreColor
ForeColor of cell. |
System.Drawing.FontFamily
fontFamily
FontFamily of cell. |
System.Double
fontSize
Font size of cell. |
System.Boolean
isBold
Is text bold. |
System.Boolean
isItalic
Is text italic. |
System.Boolean
underline
Is text underlined. |
System.Drawing.ContentAlignment
textAlignment
Text alignment. |
System.Boolean
textWrap
Is text wrapped. |
BorderBoxStyle
borderBoxStyle
Border box style. |
System.Drawing.Color
borderColor
Color of border. |
System.Drawing.Color
borderTopColor
Color of top border. |
System.Drawing.Color
borderBottomColor
Color of bottom border. |
System.Drawing.Color
borderRightColor
Color of right border. |
System.Drawing.Color
borderLeftColor
Color of left border. |
System.Windows.Forms.Orientation
textOrientation
The text orientation. |
CellStyleInfo(CellSelection, Worksheet)
Initializes a new instance of the CellStyleInfo class.
Declaration
public CellStyleInfo(CellSelection currentExcelCell, Worksheet worksheet)
Parameters
CellSelection
currentExcelCell
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.Drawing.Color
The fill. |
Implements
Borders
Gets or sets the borders.
Declaration
public object Borders { get; set; }
Property Value
System.Object
The borders. |
Implements
FontFamily
Gets or sets the font family of the excel cell.
Declaration
public FontFamily FontFamily { get; set; }
Property Value
System.Drawing.FontFamily
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.Double
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.Drawing.Color
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.Boolean
|
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.Boolean
|
Implements
TextAlignment
Gets or sets the text alignment.
Declaration
public ContentAlignment TextAlignment { get; set; }
Property Value
System.Drawing.ContentAlignment
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.Windows.Forms.Orientation
|
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.Boolean
|
Implements
Underline
Gets or sets whether the text of the excel cell is underline.
Declaration
public bool Underline { get; set; }
Property Value
System.Boolean
The underline type. |