Interface IXLBaseCollection<TSingle, TMultiple>
public interface IXLBaseCollection<TSingle, TMultiple> : IEnumerable<TSingle>, IEnumerable
Type Parameters
TSingleTMultiple
- Inherited Members
- Extension Methods
Properties
Count
int Count { get; }
Property Value
Style
IXLStyle Style { get; set; }
Property Value
Value
Sets the cells' value.
If the object is an IEnumerable SlapKit.Excel will copy the collection's data into a table starting from each cell.
If the object is a range SlapKit.Excel will copy the range starting from each cell.
Setting the value to an object (not IEnumerable/range) will call the object's ToString() method.
SlapKit.Excel will try to translate it to the corresponding type, if it can't then the value will be left as a string.
object Value { set; }
Property Value
- object
The object containing the value(s) to set.
Methods
AddToNamed(string)
Creates a named range out of these ranges.
If the named range exists, it will add these ranges to that named range.
The default scope for the named range is Workbook.
TMultiple AddToNamed(string rangeName)
Parameters
rangeNamestringName of the range.
Returns
- TMultiple
AddToNamed(string, XLScope)
Creates a named range out of these ranges.
If the named range exists, it will add these ranges to that named range.
Name of the range. The scope for the named range.TMultiple AddToNamed(string rangeName, XLScope scope)
Parameters
Returns
- TMultiple
AddToNamed(string, XLScope, string)
Creates a named range out of these ranges.
If the named range exists, it will add these ranges to that named range.
Name of the range. The scope for the named range. The comments for the named range.TMultiple AddToNamed(string rangeName, XLScope scope, string comment)
Parameters
Returns
- TMultiple
Cells()
Returns the collection of cells.
IXLCells Cells()
Returns
CellsUsed()
Returns the collection of cells that have a value.
IXLCells CellsUsed()
Returns
CellsUsed(bool)
Returns the collection of cells that have a value.
IXLCells CellsUsed(bool includeFormats)
Parameters
includeFormatsboolif set to
truewill return all cells with a value or a style different than the default.
Returns
Clear(XLClearOptions)
Clears the contents of these ranges.
TMultiple Clear(XLClearOptions clearOptions = XLClearOptions.All)
Parameters
clearOptionsXLClearOptionsSpecify what you want to clear.
Returns
- TMultiple
SetDataType(XLDataType)
TMultiple SetDataType(XLDataType dataType)
Parameters
dataTypeXLDataType
Returns
- TMultiple
SetDataValidation()
IXLDataValidation SetDataValidation()
Returns
SetValue<T>(T)
TMultiple SetValue<T>(T value)
Parameters
valueT
Returns
- TMultiple
Type Parameters
T