C# Class OfficeOpenXml.ExcelColumn

Represents an individual column within the worksheet
Mostrar archivo Open project: ylatuya/EPPlus Class Usage Examples

Private Properties

Property Type Description
Clone void
GetColumnID ulong

Public Methods

Method Description
AutoFit ( ) : void

Set the column width from the content of the range. The minimum width is the value of the ExcelWorksheet.defaultColumnWidth property. Note: Cells containing formulas are ignored since EPPlus don't have a calculation engine. Wraped and merged cells are also ignored.

AutoFit ( double MinimumWidth ) : void

Set the column width from the content. Note: Cells containing formulas are ignored since EPPlus don't have a calculation engine. Wraped and merged cells are also ignored.

ToString ( ) : string

Returns the range of columns covered by the column definition.

Protected Methods

Method Description
ExcelColumn ( OfficeOpenXml.ExcelWorksheet Worksheet, int col ) : System

Creates a new instance of the ExcelColumn class. For internal use only!

Private Methods

Method Description
Clone ( OfficeOpenXml.ExcelWorksheet added ) : void

Copies the current column to a new worksheet

GetColumnID ( int sheetID, int column ) : ulong

Get the internal RangeID

Method Details

AutoFit() public method

Set the column width from the content of the range. The minimum width is the value of the ExcelWorksheet.defaultColumnWidth property. Note: Cells containing formulas are ignored since EPPlus don't have a calculation engine. Wraped and merged cells are also ignored.
public AutoFit ( ) : void
return void

AutoFit() public method

Set the column width from the content. Note: Cells containing formulas are ignored since EPPlus don't have a calculation engine. Wraped and merged cells are also ignored.
public AutoFit ( double MinimumWidth ) : void
MinimumWidth double Minimum column width
return void

ExcelColumn() protected method

Creates a new instance of the ExcelColumn class. For internal use only!
protected ExcelColumn ( OfficeOpenXml.ExcelWorksheet Worksheet, int col ) : System
Worksheet OfficeOpenXml.ExcelWorksheet
col int
return System

ToString() public method

Returns the range of columns covered by the column definition.
public ToString ( ) : string
return string