Table of Contents

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

IExcelCellWriter

The current cell.

SetBold(bool)

Set the cell font style.

IExcelCellWriter SetBold(bool value)

Parameters

value bool

True for bold

Returns

IExcelCellWriter

SetColor(Color)

Set the cell color

IExcelCellWriter SetColor(Color color)

Parameters

color Color

The given color.

Returns

IExcelCellWriter

The current cell.

SetFillColor(Color)

Set the cell fill color.

IExcelCellWriter SetFillColor(Color color)

Parameters

color Color

The given fill color.

Returns

IExcelCellWriter

The current cell.

SetFont(Font)

Set the cell font type.

IExcelCellWriter SetFont(Font font)

Parameters

font Font

The given font.

Returns

IExcelCellWriter

The current cell.

SetFormat(string)

Set the cell numeric format.

IExcelCellWriter SetFormat(string format)

Parameters

format string

The format pattern.

Returns

IExcelCellWriter

The current cell.

Set a hyperlink into the cell content.

IExcelCellWriter SetHyperlink(string uriString)

Parameters

uriString string

The given url

Returns

IExcelCellWriter

The current cell.

SetItalic(bool)

Set the cell font style

IExcelCellWriter SetItalic(bool value)

Parameters

value bool

True for italic

Returns

IExcelCellWriter

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

IExcelCellWriter

The current cell.

SetValue<T>(T)

Set the value of a cell.

IExcelCellWriter SetValue<T>(T value)

Parameters

value T

The given value.

Returns

IExcelCellWriter

The current cell.

Type Parameters

T

The type of the value.