ExcelRangeFluent
OfficeIMO.Excel
The fluent methods of ExcelRange, 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
- ExcelRangeFluent
Methods
public static ExcelRange Baseline(ExcelRange excelRange) #Restores every cell in the range to the normal baseline.
Parameters
- excelRange OfficeIMO.Excel.ExcelRange
- The instance.
public static ExcelRange Bold(ExcelRange excelRange, bool bold = true) #Sets or clears bold font style for every cell in the range.
Parameters
- excelRange OfficeIMO.Excel.ExcelRange
- The instance.
- bold bool = true
- The value.
public static ExcelRange Border(ExcelRange excelRange, ExcelBorderStyle style, OfficeColor? color = null) #Applies a border style to every edge of every cell in the range.
Parameters
- excelRange OfficeIMO.Excel.ExcelRange
- The instance.
- style OfficeIMO.Excel.ExcelBorderStyle
- The value.
- color OfficeIMO.OfficeColor? = null
- The value.
public static ExcelRange Border(ExcelRange excelRange, ExcelCellBorders borders, ExcelBorderStyle style, OfficeColor? color = null) #Sets selected border edges of every cell in the range while preserving other edges and styles.
Parameters
- excelRange OfficeIMO.Excel.ExcelRange
- The instance.
- borders OfficeIMO.Excel.ExcelCellBorders
- The value.
- style OfficeIMO.Excel.ExcelBorderStyle
- The value.
- color OfficeIMO.OfficeColor? = null
- The value.
public static ExcelRange Color(ExcelRange excelRange, OfficeColor color) #Applies a font color to every cell in the range.
Parameters
- excelRange OfficeIMO.Excel.ExcelRange
- The instance.
- color OfficeIMO.OfficeColor
- The value.
public static ExcelRange DiagonalBorder(ExcelRange excelRange, ExcelBorderStyle style, OfficeColor? color = null, bool diagonalUp = true, bool diagonalDown = true) #Applies diagonal borders to every cell in the range.
Parameters
- excelRange OfficeIMO.Excel.ExcelRange
- 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 ExcelRange FillColor(ExcelRange excelRange, OfficeColor color) #Applies a solid fill color to every cell in the range. Theme colors stay linked to the workbook theme.
Parameters
- excelRange OfficeIMO.Excel.ExcelRange
- The instance.
- color OfficeIMO.OfficeColor
- The value.
public static ExcelRange FontFamily(ExcelRange excelRange, string fontFamily) #Applies a font family name to every cell in the range.
Parameters
- excelRange OfficeIMO.Excel.ExcelRange
- The instance.
- fontFamily string
- The value.
public static ExcelRange FontSize(ExcelRange excelRange, OfficeLength fontSize) #Applies a positive physical font size to every cell in the range.
Parameters
- excelRange OfficeIMO.Excel.ExcelRange
- The instance.
- fontSize OfficeIMO.OfficeLength
- The value.
public static ExcelRange GradientFill(ExcelRange excelRange, OfficeColor fromColor, OfficeColor toColor, double degree = 0) #Applies a two-color linear gradient fill to every cell in the range.
Parameters
- excelRange OfficeIMO.Excel.ExcelRange
- The instance.
- fromColor OfficeIMO.OfficeColor
- The value.
- toColor OfficeIMO.OfficeColor
- The value.
- degree double = 0
- The value.
public static ExcelRange HorizontalAlignment(ExcelRange excelRange, ExcelHorizontalAlignment alignment) #Sets the horizontal alignment of every cell in the range.
Parameters
- excelRange OfficeIMO.Excel.ExcelRange
- The instance.
- alignment OfficeIMO.Excel.ExcelHorizontalAlignment
- The value.
public static ExcelRange Italic(ExcelRange excelRange, bool italic = true) #Sets or clears italic font style for every cell in the range.
Parameters
- excelRange OfficeIMO.Excel.ExcelRange
- The instance.
- italic bool = true
- The value.
public static ExcelRange NumberFormat(ExcelRange excelRange, string numberFormat) #Applies a number format to every cell in the range.
Parameters
- excelRange OfficeIMO.Excel.ExcelRange
- The instance.
- numberFormat string
- The value.
public static ExcelRange Sheet(ExcelRange excelRange, Action<ExcelSheet> configure) #Configures ExcelRange.Sheet in place: Gets the worksheet that owns the range.
Parameters
- excelRange OfficeIMO.Excel.ExcelRange
- The instance.
- configure System.Action<OfficeIMO.Excel.ExcelSheet>
- Configures the value.
public static ExcelRange ShrinkToFit(ExcelRange excelRange, bool shrinkToFit = true) #Sets or clears shrink-to-fit text alignment for every cell in the range.
Parameters
- excelRange OfficeIMO.Excel.ExcelRange
- The instance.
- shrinkToFit bool = true
- The value.
public static ExcelRange Strikethrough(ExcelRange excelRange, bool strikethrough = true) #Sets or clears strikethrough font style for every cell in the range.
Parameters
- excelRange OfficeIMO.Excel.ExcelRange
- The instance.
- strikethrough bool = true
- The value.
public static ExcelRange Subscript(ExcelRange excelRange) #Formats every cell in the range as subscript.
Parameters
- excelRange OfficeIMO.Excel.ExcelRange
- The instance.
public static ExcelRange Superscript(ExcelRange excelRange) #Formats every cell in the range as superscript.
Parameters
- excelRange OfficeIMO.Excel.ExcelRange
- The instance.
public static ExcelRange TextRotation(ExcelRange excelRange, int rotation) #Sets Excel text rotation for every cell in the range.
Parameters
- excelRange OfficeIMO.Excel.ExcelRange
- The instance.
- rotation int
- The value.
public static ExcelRange Underline(ExcelRange excelRange, bool underline = true) #Sets or clears single underline font style for every cell in the range.
Parameters
- excelRange OfficeIMO.Excel.ExcelRange
- The instance.
- underline bool = true
- The value.
public static ExcelRange Underline(ExcelRange excelRange, ExcelUnderlineStyle underlineStyle) #Sets the native Excel underline style for every cell in the range.
Parameters
- excelRange OfficeIMO.Excel.ExcelRange
- The instance.
- underlineStyle OfficeIMO.Excel.ExcelUnderlineStyle
- The value.
public static ExcelRange Values(ExcelRange excelRange, object?[,] values) #Writes a rectangular matrix whose dimensions exactly match this range.
Parameters
- excelRange OfficeIMO.Excel.ExcelRange
- The instance.
- values object?[,]
- The value.
public static ExcelRange VerticalAlignment(ExcelRange excelRange, ExcelVerticalAlignment alignment) #Sets the vertical alignment of every cell in the range.
Parameters
- excelRange OfficeIMO.Excel.ExcelRange
- The instance.
- alignment OfficeIMO.Excel.ExcelVerticalAlignment
- The value.
public static ExcelRange VerticalTextAlignment(ExcelRange excelRange, ExcelVerticalTextAlignment alignment) #Sets the native Excel baseline, superscript, or subscript alignment for every cell in the range.
Parameters
- excelRange OfficeIMO.Excel.ExcelRange
- The instance.
- alignment OfficeIMO.Excel.ExcelVerticalTextAlignment
- The value.
public static ExcelRange WrapText(ExcelRange excelRange, bool wrapText = true) #Sets or clears text wrapping for every cell in the range.
Parameters
- excelRange OfficeIMO.Excel.ExcelRange
- The instance.
- wrapText bool = true
- The value.