C# Класс OfficeOpenXml.ExcelColumn

Represents an individual column within the worksheet
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
Clone void
GetColumnID ulong

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
ExcelColumn ( OfficeOpenXml.ExcelWorksheet Worksheet, int col ) : System

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

Приватные методы

Метод Описание
Clone ( OfficeOpenXml.ExcelWorksheet added ) : void

Copies the current column to a new worksheet

GetColumnID ( int sheetID, int column ) : ulong

Get the internal RangeID

Описание методов

AutoFit() публичный Метод

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
Результат void

AutoFit() публичный Метод

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
Результат void

ExcelColumn() защищенный Метод

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
Результат System

ToString() публичный Метод

Returns the range of columns covered by the column definition.
public ToString ( ) : string
Результат string