Description
Contains settings specifying how the ExcelCell data will be displayed.

Namespace: Docs.Excel
Assembly: Excel (in Excel.dll) Version: 3.1.0.0 (3.1)

Syntax

         
 C#  Visual Basic  Visual C++ 
public class ExcelCellStyle
Public Class ExcelCellStyle
public ref class ExcelCellStyle

Members

      
 All Members  Properties  
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
BackgroundColor
Gets or sets background color. There are predefined colors ColorPalette for XLS format.

Remarks

It's recomended to use SetFillColorOfCell(Color) method.
Borders
CellDataFormat
Gets a type of cell data format.
Font
Gets or sets ExcelCellFont related settings (ExcelCellFont).
Hidden
Gets of sets if the ExcelCell is hidden.
HorizontalAlignment
Gets or sets a horizontal alignment.
IsDefaultStyle
Returns true if cell style is default; otherwise, false.
IsVerticalText
Gets of sets whether the ExcelCell text is displayed in a vertical style.
Locked
Gets of sets if the ExcelCell is locked.
PatternFillStyle
Gets or sets fill pattern.

Remarks

PatternForeColor
Gets or sets fill pattern foreground color.

Remarks

Rotation
Gets or sets ExcelCell data rotation. Value must be between -90 and 90.
StringFormat
Gets or sets a format string that will be used to interpret and display ExcelCell value.

Remarks

Use predefined formats DefinedFormats to quick set format string. For more information on number format strings consult Microsoft Excel documentation.
VerticalAlignment
Gets or set a vertical alignment.
WrapText
Gets or sets if the text is Wrapped.

Inheritance Hierarchy

System..::..Object
  Docs.Excel..::..ExcelCellStyle

See Also