skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class CellStyleInfo

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

Inheritance
System.Object
CellStyleInfo
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
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
ISpreadExportCellStyleInfo.BackColor

Borders

Gets or sets the borders.

Declaration
public object Borders { get; set; }
Property Value
System.Object

The borders.

Implements
ISpreadExportCellStyleInfo.Borders

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
ISpreadExportCellStyleInfo.FontFamily

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
ISpreadExportCellStyleInfo.FontSize

ForeColor

Gets or sets the ForeColor of the excel cell.

Declaration
public Color ForeColor { get; set; }
Property Value
System.Drawing.Color

The ForeColor.

Implements
ISpreadExportCellStyleInfo.ForeColor

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

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

Implements
ISpreadExportCellStyleInfo.IsBold

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

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

Implements
ISpreadExportCellStyleInfo.IsItalic

TextAlignment

Gets or sets the text alignment.

Declaration
public ContentAlignment TextAlignment { get; set; }
Property Value
System.Drawing.ContentAlignment

The text alignment.

Implements
ISpreadExportCellStyleInfo.TextAlignment

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
ISpreadExportCellStyleInfo.TextOrientation

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

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

Implements
ISpreadExportCellStyleInfo.TextWrap

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.

Implements
ISpreadExportCellStyleInfo.Underline

Extension Methods

SvgExtentions.Traverse<T>(T, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(T, Func<T, IEnumerable<T>>)
Getting Started
  • Install Now
  • Demos
  • Step-by-Step Tutorial
  • Sample Applications
  • SDK Samples
  • Visual Studio Extensions
Support Resources
  • Code Library
  • Knowledge Base
  • Videos
Community
  • Forums
  • Blogs
  • Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.