ExcelCellFluent
OfficeIMO.Excel
The fluent methods of ExcelCell, generated from its public properties: A property-named method sets a property and a singular-named method adds to a collection, both returning the same instance.
Inheritance
- object
- ExcelCellFluent
Methods
public static ExcelCell Baseline(ExcelCell excelCell) #Restores the cell text to the normal baseline.
Parameters
- excelCell OfficeIMO.Excel.ExcelCell
- The instance.
public static ExcelCell Bold(ExcelCell excelCell, bool bold = true) #Sets or clears bold font style.
Parameters
- excelCell OfficeIMO.Excel.ExcelCell
- The instance.
- bold bool = true
- The value.
public static ExcelCell Border(ExcelCell excelCell, ExcelBorderStyle style, OfficeColor? color = null) #Applies a border style to the cell.
Parameters
- excelCell OfficeIMO.Excel.ExcelCell
- The instance.
- style OfficeIMO.Excel.ExcelBorderStyle
- The value.
- color OfficeIMO.OfficeColor? = null
- The value.
public static ExcelCell Border(ExcelCell excelCell, ExcelCellBorders borders, ExcelBorderStyle style, OfficeColor? color = null) #Sets selected border edges while preserving other edges and cell styles.
Parameters
- excelCell OfficeIMO.Excel.ExcelCell
- The instance.
- borders OfficeIMO.Excel.ExcelCellBorders
- The value.
- style OfficeIMO.Excel.ExcelBorderStyle
- The value.
- color OfficeIMO.OfficeColor? = null
- The value.
public static ExcelCell Color(ExcelCell excelCell, OfficeColor color) #Sets the font color using a hex color value.
Parameters
- excelCell OfficeIMO.Excel.ExcelCell
- The instance.
- color OfficeIMO.OfficeColor
- The value.
public static ExcelCell DiagonalBorder(ExcelCell excelCell, ExcelBorderStyle style, OfficeColor? color = null, bool diagonalUp = true, bool diagonalDown = true) #Applies diagonal borders to the cell.
Parameters
- excelCell OfficeIMO.Excel.ExcelCell
- The instance.
- style OfficeIMO.Excel.ExcelBorderStyle
- The value.
- color OfficeIMO.OfficeColor? = null
- The value.
- diagonalUp bool = true
- The value.
- diagonalDown bool = true
- The value.
public static ExcelCell Error(ExcelCell excelCell, string errorText) #Writes a native Excel error value, such as #N/A or #DIV/0!.
Parameters
- excelCell OfficeIMO.Excel.ExcelCell
- The instance.
- errorText string
- The value.
public static ExcelCell FillColor(ExcelCell excelCell, OfficeColor color) #Sets the solid fill color. Theme colors stay linked to the workbook theme.
Parameters
- excelCell OfficeIMO.Excel.ExcelCell
- The instance.
- color OfficeIMO.OfficeColor
- The value.
public static ExcelCell FontFamily(ExcelCell excelCell, string fontFamily) #Sets the font family name.
Parameters
- excelCell OfficeIMO.Excel.ExcelCell
- The instance.
- fontFamily string
- The value.
public static ExcelCell FontSize(ExcelCell excelCell, OfficeLength fontSize) #Sets a positive physical font size.
Parameters
- excelCell OfficeIMO.Excel.ExcelCell
- The instance.
- fontSize OfficeIMO.OfficeLength
- The value.
public static ExcelCell Formula(ExcelCell excelCell, string formula) #Sets the cell formula while keeping any existing value as its cached result. This is not a redaction API: rebuild the workbook from approved data to remove sensitive historic content.
Parameters
- excelCell OfficeIMO.Excel.ExcelCell
- The instance.
- formula string
- The value.
public static ExcelCell GradientFill(ExcelCell excelCell, OfficeColor fromColor, OfficeColor toColor, double degree = 0) #Sets a two-color linear gradient fill using literal or theme colors.
Parameters
- excelCell OfficeIMO.Excel.ExcelCell
- The instance.
- fromColor OfficeIMO.OfficeColor
- The value.
- toColor OfficeIMO.OfficeColor
- The value.
- degree double = 0
- The value.
public static ExcelCell HorizontalAlignment(ExcelCell excelCell, ExcelHorizontalAlignment alignment) #Sets the horizontal alignment.
Parameters
- excelCell OfficeIMO.Excel.ExcelCell
- The instance.
- alignment OfficeIMO.Excel.ExcelHorizontalAlignment
- The value.
public static ExcelCell Italic(ExcelCell excelCell, bool italic = true) #Sets or clears italic font style.
Parameters
- excelCell OfficeIMO.Excel.ExcelCell
- The instance.
- italic bool = true
- The value.
public static ExcelCell NumberFormat(ExcelCell excelCell, string numberFormat) #Applies a number format to the cell.
Parameters
- excelCell OfficeIMO.Excel.ExcelCell
- The instance.
- numberFormat string
- The value.
public static ExcelCell RichText(ExcelCell excelCell, params ExcelRichTextRun[] runs) #Replaces the cell contents with rich inline text runs.
Parameters
- excelCell OfficeIMO.Excel.ExcelCell
- The instance.
- runs OfficeIMO.Excel.ExcelRichTextRun[]
- The value.
public static ExcelCell RichText(ExcelCell excelCell, IEnumerable<ExcelRichTextRun> runs) #Replaces the cell contents with rich inline text runs.
Parameters
- excelCell OfficeIMO.Excel.ExcelCell
- The instance.
- runs System.Collections.Generic.IEnumerable<OfficeIMO.Excel.ExcelRichTextRun>
- The value.
public static ExcelCell ShrinkToFit(ExcelCell excelCell, bool shrinkToFit = true) #Sets or clears shrink-to-fit text alignment.
Parameters
- excelCell OfficeIMO.Excel.ExcelCell
- The instance.
- shrinkToFit bool = true
- The value.
public static ExcelCell Strikethrough(ExcelCell excelCell, bool strikethrough = true) #Sets or clears strikethrough font style.
Parameters
- excelCell OfficeIMO.Excel.ExcelCell
- The instance.
- strikethrough bool = true
- The value.
public static ExcelCell Subscript(ExcelCell excelCell) #Formats the cell text as subscript.
Parameters
- excelCell OfficeIMO.Excel.ExcelCell
- The instance.
public static ExcelCell Superscript(ExcelCell excelCell) #Formats the cell text as superscript.
Parameters
- excelCell OfficeIMO.Excel.ExcelCell
- The instance.
public static ExcelCell TextRotation(ExcelCell excelCell, int rotation) #Sets Excel text rotation. Use 0-90 for upward rotation, 91-180 for downward rotation, or 255 for stacked vertical text.
Parameters
- excelCell OfficeIMO.Excel.ExcelCell
- The instance.
- rotation int
- The value.
public static ExcelCell Underline(ExcelCell excelCell, bool underline = true) #Sets or clears underline font style.
Parameters
- excelCell OfficeIMO.Excel.ExcelCell
- The instance.
- underline bool = true
- The value.
public static ExcelCell Value(ExcelCell excelCell, object? value) #Sets the cell value, inferring the stored type. Dates and times get a date or duration number format unless the cell already has one.
Parameters
- excelCell OfficeIMO.Excel.ExcelCell
- The instance.
- value object?
- The value.
public static ExcelCell Value(ExcelCell excelCell, string value) #Sets Value.
Parameters
- excelCell OfficeIMO.Excel.ExcelCell
- The instance.
- value string
- The value.
public static ExcelCell Value(ExcelCell excelCell, double value) #Sets Value.
Parameters
- excelCell OfficeIMO.Excel.ExcelCell
- The instance.
- value double
- The value.
public static ExcelCell Value(ExcelCell excelCell, float value) #Sets Value.
Parameters
- excelCell OfficeIMO.Excel.ExcelCell
- The instance.
- value float
- The value.
public static ExcelCell Value(ExcelCell excelCell, decimal value) #Sets Value.
Parameters
- excelCell OfficeIMO.Excel.ExcelCell
- The instance.
- value decimal
- The value.
public static ExcelCell Value(ExcelCell excelCell, int value) #Sets Value.
Parameters
- excelCell OfficeIMO.Excel.ExcelCell
- The instance.
- value int
- The value.
public static ExcelCell Value(ExcelCell excelCell, long value) #Sets Value.
Parameters
- excelCell OfficeIMO.Excel.ExcelCell
- The instance.
- value long
- The value.
public static ExcelCell Value(ExcelCell excelCell, short value) #Sets Value.
Parameters
- excelCell OfficeIMO.Excel.ExcelCell
- The instance.
- value short
- The value.
public static ExcelCell Value(ExcelCell excelCell, uint value) #Sets Value.
Parameters
- excelCell OfficeIMO.Excel.ExcelCell
- The instance.
- value uint
- The value.
public static ExcelCell Value(ExcelCell excelCell, ulong value) #Sets Value.
Parameters
- excelCell OfficeIMO.Excel.ExcelCell
- The instance.
- value ulong
- The value.
public static ExcelCell Value(ExcelCell excelCell, ushort value) #Sets Value.
Parameters
- excelCell OfficeIMO.Excel.ExcelCell
- The instance.
- value ushort
- The value.
public static ExcelCell Value(ExcelCell excelCell, byte value) #Sets Value.
Parameters
- excelCell OfficeIMO.Excel.ExcelCell
- The instance.
- value byte
- The value.
public static ExcelCell Value(ExcelCell excelCell, sbyte value) #Sets Value.
Parameters
- excelCell OfficeIMO.Excel.ExcelCell
- The instance.
- value sbyte
- The value.
public static ExcelCell Value(ExcelCell excelCell, bool value = true) #Sets Value.
Parameters
- excelCell OfficeIMO.Excel.ExcelCell
- The instance.
- value bool = true
- The value. True when omitted.
public static ExcelCell Value(ExcelCell excelCell, DateTime value) #Sets Value.
Parameters
- excelCell OfficeIMO.Excel.ExcelCell
- The instance.
- value System.DateTime
- The value.
public static ExcelCell Value(ExcelCell excelCell, DateTimeOffset value) #Sets Value.
Parameters
- excelCell OfficeIMO.Excel.ExcelCell
- The instance.
- value System.DateTimeOffset
- The value.
public static ExcelCell Value(ExcelCell excelCell, TimeSpan value) #Sets Value.
Parameters
- excelCell OfficeIMO.Excel.ExcelCell
- The instance.
- value System.TimeSpan
- The value.
public static ExcelCell Value(ExcelCell excelCell, DateOnly value) #Sets Value.
Parameters
- excelCell OfficeIMO.Excel.ExcelCell
- The instance.
- value System.DateOnly
- The value.
public static ExcelCell VerticalAlignment(ExcelCell excelCell, ExcelVerticalAlignment alignment) #Sets the vertical alignment.
Parameters
- excelCell OfficeIMO.Excel.ExcelCell
- The instance.
- alignment OfficeIMO.Excel.ExcelVerticalAlignment
- The value.
public static ExcelCell VerticalTextAlignment(ExcelCell excelCell, ExcelVerticalTextAlignment alignment) #Sets the native Excel baseline, superscript, or subscript alignment.
Parameters
- excelCell OfficeIMO.Excel.ExcelCell
- The instance.
- alignment OfficeIMO.Excel.ExcelVerticalTextAlignment
- The value.