Class Worksheet
- Namespace
- FileFormat.Cells
- Assembly
- FileFormat.Cells.dll
public sealed class Worksheet
- Inheritance
-
Worksheet
- Inherited Members
-
Fields
public const double DefaultColumnWidth = 8.43
Field Value
- double
public const double DefaultRowHeight = 15
Field Value
- double
Properties
public CellIndexer Cells { get; }
Property Value
- CellIndexer
public string Name { get; set; }
Property Value
- string
Methods
public void AddComment(string cellReference, Comment comment)
Parameters
cellReference
string
comment
Comment
public void AddDropdownListValidation(string cellReference, string[] options)
Parameters
cellReference
string
options
string[]
public void AddImage(Image image, int startRowIndex, int startColumnIndex, int endRowIndex, int endColumnIndex)
Parameters
image
Image
startRowIndex
int
startColumnIndex
int
endRowIndex
int
endColumnIndex
int
public void ApplyValidation(string cellReference, ValidationRule rule)
Parameters
cellReference
string
rule
ValidationRule
public List<Image> ExtractImages()
Returns
- List<Image>
public Cell GetCell(string cellReference)
Parameters
cellReference
string
Returns
- Cell
public int GetColumnCount()
Returns
- int
public double GetColumnWidth(uint columnIndex)
Parameters
columnIndex
uint
Returns
- double
public Range GetRange(string startCellReference, string endCellReference)
Parameters
startCellReference
string
endCellReference
string
Returns
- Range
public Range GetRange(uint startRowIndex, uint startColumnIndex, uint endRowIndex, uint endColumnIndex)
Parameters
startRowIndex
uint
startColumnIndex
uint
endRowIndex
uint
endColumnIndex
uint
Returns
- Range
Returns
- int
public double GetRowHeight(uint rowIndex)
Parameters
rowIndex
uint
Returns
- double
public int GetSheetIndex()
Returns
- int
public ValidationRule GetValidationRule(string cellReference)
Parameters
cellReference
string
Returns
- ValidationRule
public void HideColumn(string columnName)
Parameters
columnName
string
public void HideRow(uint rowIndex)
Parameters
rowIndex
uint
public void HideRows(uint startRowIndex, uint numberOfRows)
Parameters
startRowIndex
uint
numberOfRows
uint
public void InsertColumn(string startColumn)
Parameters
startColumn
string
public void InsertColumns(string startColumn, int numberOfColumns)
Parameters
startColumn
string
numberOfColumns
int
public void InsertRow(uint rowIndex)
Parameters
rowIndex
uint
public void InsertRows(uint startRowIndex, uint numberOfRows)
Parameters
startRowIndex
uint
numberOfRows
uint
public bool IsColumnHidden(string columnName)
Parameters
columnName
string
Returns
- bool
public bool IsProtected()
Returns
- bool
public bool IsRowHidden(uint rowIndex)
Parameters
rowIndex
uint
Returns
- bool
public void MergeCells(string startCellReference, string endCellReference)
Parameters
startCellReference
string
endCellReference
string
public void ProtectSheet(string password)
Parameters
password
string
public void SetColumnWidth(string columnName, double width)
Parameters
columnName
string
width
double
public void SetRowHeight(uint rowIndex, double height)
Parameters
rowIndex
uint
height
double
public void UnhideColumn(string columnName)
Parameters
columnName
string
public void UnhideColumns(string startColumn, int numberOfColumns)
Parameters
startColumn
string
numberOfColumns
int
public void UnhideRow(uint rowIndex)
Parameters
rowIndex
uint
public void UnhideRows(uint startRowIndex, uint numberOfRows)
Parameters
startRowIndex
uint
numberOfRows
uint
public void UnprotectSheet()