CellStyleInfo
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
Initializes a new instance of the CellStyleInfo class.
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)
Current excel cell.
backColorColorBackColor of cell.
foreColorColorForeColor of cell.
fontFamilyFontFamilyFontFamily of cell.
fontSizedoubleFont size of cell.
isBoldboolIs text bold.
isItalicboolIs text italic.
underlineboolIs text underlined.
textAlignmentContentAlignmentText alignment.
textWrapboolIs text wrapped.
borderBoxStyleBorderBoxStyleBorder box style.
borderColorColorColor of border.
borderTopColorColorColor of top border.
borderBottomColorColorColor of bottom border.
borderRightColorColorColor of right border.
borderLeftColorColorColor of left border.
textOrientationOrientationThe text orientation.
Initializes a new instance of the CellStyleInfo class.
public CellStyleInfo(CellSelection currentExcelCell, Worksheet worksheet)
The current excel cell.
worksheetWorksheetThe worksheet.
Properties
Gets or sets the fill of the excel cell.
public Color BackColor { get; set; }
The fill.
Implements:
Gets or sets the borders.
public object Borders { get; set; }
The borders.
Implements:
Gets or sets the font family of the excel cell.
public FontFamily FontFamily { get; set; }
The font family.
Implements:
Gets or sets the size of the font of the excel cell.
public double FontSize { get; set; }
The size of the font in points (pt). It will be automatically converted to the Device Independent Pixels, when setting.
Implements:
Gets or sets the ForeColor of the excel cell.
public Color ForeColor { get; set; }
The ForeColor.
Implements:
Gets or sets a value indicating whether this text of the excel cell is bold.
public bool IsBold { get; set; }
true if the text of the excel cell is bold; otherwise, false.
Implements:
Gets or sets a value indicating whether the text of the excel cell is italic.
public bool IsItalic { get; set; }
true if the text of the excel cell is italic; otherwise, false.
Implements:
Gets or sets the text alignment.
public ContentAlignment TextAlignment { get; set; }
The text alignment.
Implements:
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.
public Orientation TextOrientation { get; set; }
Implements:
Gets or sets a value indicating whether the text of the excel cell is wrapped.
public bool TextWrap { get; set; }
true if the text of the excel cell is wrapped; otherwise, false.
Implements: