Interface IExcelCellWriter
Namespace: Casewhere.Runtime.IO
Assembly: Casewhere.Runtime.IO.dll
Provide methods for working with an excel cell.
public interface IExcelCellWriter
Extension Methods
ObjectExtension.ConvertToBsonValue(object), EnumExtensions.DeepClone<IExcelCellWriter>(IExcelCellWriter)
Methods
SetAlignment(Alignment)
Set the alignment for the cell content.
IExcelCellWriter SetAlignment(Alignment alignment)
Parameters
alignment
Alignment
The alignment type.
Returns
The current cell.
SetBold(bool)
Set the cell font style.
IExcelCellWriter SetBold(bool value)
Parameters
value
bool
True for bold
Returns
SetColor(Color)
Set the cell color
IExcelCellWriter SetColor(Color color)
Parameters
color
Color
The given color.
Returns
The current cell.
SetFillColor(Color)
Set the cell fill color.
IExcelCellWriter SetFillColor(Color color)
Parameters
color
Color
The given fill color.
Returns
The current cell.
SetFont(Font)
Set the cell font type.
IExcelCellWriter SetFont(Font font)
Parameters
font
Font
The given font.
Returns
The current cell.
SetFormat(string)
Set the cell numeric format.
IExcelCellWriter SetFormat(string format)
Parameters
format
string
The format pattern.
Returns
The current cell.
SetHyperlink(string)
Set a hyperlink into the cell content.
IExcelCellWriter SetHyperlink(string uriString)
Parameters
uriString
string
The given url
Returns
The current cell.
SetItalic(bool)
Set the cell font style
IExcelCellWriter SetItalic(bool value)
Parameters
value
bool
True for italic
Returns
The current cell.
SetVAlignment(VAlignment)
Set the vertical alignment for the cell content.
IExcelCellWriter SetVAlignment(VAlignment vAlignment)
Parameters
vAlignment
VAlignment
The vertical aligment type
Returns
The current cell.
SetValue<T>(T)
Set the value of a cell.
IExcelCellWriter SetValue<T>(T value)
Parameters
value
T
The given value.
Returns
The current cell.
Type Parameters
T
The type of the value.