Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

ExcelRowLayoutOptionsFluent

OfficeIMO.Excel

Namespace
OfficeIMO.Excel
Assembly
OfficeIMO.Excel
Modifiers
static

The fluent methods of ExcelRowLayoutOptions, 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
  • ExcelRowLayoutOptionsFluent

Methods

public static ExcelRowLayoutOptions AutoFit(ExcelRowLayoutOptions excelRowLayoutOptions, bool value = true) #

Sets ExcelRowLayoutOptions.AutoFit: Auto-fits the row height after style changes are applied.

Parameters

excelRowLayoutOptions OfficeIMO.Excel.ExcelRowLayoutOptions required
The instance.
value bool = true optional
The value; true when omitted.

Returns

ExcelRowLayoutOptions The same instance.

Examples

// C# initializer or property                                             // C# fluent
new global::OfficeIMO.Excel.ExcelRowLayoutOptions { AutoFit = value };    excelRowLayoutOptions.AutoFit(value);
public static ExcelRowLayoutOptions BackgroundColor(ExcelRowLayoutOptions excelRowLayoutOptions, OfficeColor? value) #

Sets ExcelRowLayoutOptions.BackgroundColor: Optional background color applied to cells in the target column span. Native theme roles remain linked to the workbook theme.

Parameters

excelRowLayoutOptions OfficeIMO.Excel.ExcelRowLayoutOptions required
The instance.
value OfficeIMO.OfficeColor? required
The value.

Returns

ExcelRowLayoutOptions The same instance.

Examples

// C# initializer or property                                                     // C# fluent
new global::OfficeIMO.Excel.ExcelRowLayoutOptions { BackgroundColor = value };    excelRowLayoutOptions.BackgroundColor(value);
public static ExcelRowLayoutOptions Bold(ExcelRowLayoutOptions excelRowLayoutOptions, bool? value = true) #

Sets ExcelRowLayoutOptions.Bold: Optional bold font state applied to cells in the target column span.

Parameters

excelRowLayoutOptions OfficeIMO.Excel.ExcelRowLayoutOptions required
The instance.
value bool? = true optional
The value; true when omitted.

Returns

ExcelRowLayoutOptions The same instance.

Examples

// C# initializer or property                                          // C# fluent
new global::OfficeIMO.Excel.ExcelRowLayoutOptions { Bold = value };    excelRowLayoutOptions.Bold(value);
public static ExcelRowLayoutOptions ClearHeight(ExcelRowLayoutOptions excelRowLayoutOptions, bool value = true) #

Sets ExcelRowLayoutOptions.ClearHeight: Clears any custom row height before optional auto-fit is applied.

Parameters

excelRowLayoutOptions OfficeIMO.Excel.ExcelRowLayoutOptions required
The instance.
value bool = true optional
The value; true when omitted.

Returns

ExcelRowLayoutOptions The same instance.

Examples

// C# initializer or property                                                 // C# fluent
new global::OfficeIMO.Excel.ExcelRowLayoutOptions { ClearHeight = value };    excelRowLayoutOptions.ClearHeight(value);
public static ExcelRowLayoutOptions FirstColumn(ExcelRowLayoutOptions excelRowLayoutOptions, int? value) #

Sets ExcelRowLayoutOptions.FirstColumn: First 1-based column affected by cell style options. Defaults to the worksheet used range.

Parameters

excelRowLayoutOptions OfficeIMO.Excel.ExcelRowLayoutOptions required
The instance.
value int? required
The value.

Returns

ExcelRowLayoutOptions The same instance.

Examples

// C# initializer or property                                                 // C# fluent
new global::OfficeIMO.Excel.ExcelRowLayoutOptions { FirstColumn = value };    excelRowLayoutOptions.FirstColumn(value);
public static ExcelRowLayoutOptions FontFamily(ExcelRowLayoutOptions excelRowLayoutOptions, string? value) #

Sets ExcelRowLayoutOptions.FontFamily: Optional font family applied to cells in the target column span.

Parameters

excelRowLayoutOptions OfficeIMO.Excel.ExcelRowLayoutOptions required
The instance.
value string? required
The value.

Returns

ExcelRowLayoutOptions The same instance.

Examples

// C# initializer or property                                                // C# fluent
new global::OfficeIMO.Excel.ExcelRowLayoutOptions { FontFamily = value };    excelRowLayoutOptions.FontFamily(value);
public static ExcelRowLayoutOptions Height(ExcelRowLayoutOptions excelRowLayoutOptions, ExcelColumnWidth? value) #

Sets ExcelRowLayoutOptions.Height: Explicit row height as characters or a physical length. Use ExcelRowLayoutOptions.ClearHeight to remove a custom height.

Parameters

excelRowLayoutOptions OfficeIMO.Excel.ExcelRowLayoutOptions required
The instance.
value OfficeIMO.Excel.ExcelColumnWidth? required
The value.

Returns

ExcelRowLayoutOptions The same instance.

Examples

// C# initializer or property                                            // C# fluent
new global::OfficeIMO.Excel.ExcelRowLayoutOptions { Height = value };    excelRowLayoutOptions.Height(value);
public static ExcelRowLayoutOptions Hidden(ExcelRowLayoutOptions excelRowLayoutOptions, bool? value = true) #

Sets ExcelRowLayoutOptions.Hidden: Optional hidden state for the row.

Parameters

excelRowLayoutOptions OfficeIMO.Excel.ExcelRowLayoutOptions required
The instance.
value bool? = true optional
The value; true when omitted.

Returns

ExcelRowLayoutOptions The same instance.

Examples

// C# initializer or property                                            // C# fluent
new global::OfficeIMO.Excel.ExcelRowLayoutOptions { Hidden = value };    excelRowLayoutOptions.Hidden(value);
public static ExcelRowLayoutOptions Italic(ExcelRowLayoutOptions excelRowLayoutOptions, bool? value = true) #

Sets ExcelRowLayoutOptions.Italic: Optional italic font state applied to cells in the target column span.

Parameters

excelRowLayoutOptions OfficeIMO.Excel.ExcelRowLayoutOptions required
The instance.
value bool? = true optional
The value; true when omitted.

Returns

ExcelRowLayoutOptions The same instance.

Examples

// C# initializer or property                                            // C# fluent
new global::OfficeIMO.Excel.ExcelRowLayoutOptions { Italic = value };    excelRowLayoutOptions.Italic(value);
public static ExcelRowLayoutOptions LastColumn(ExcelRowLayoutOptions excelRowLayoutOptions, int? value) #

Sets ExcelRowLayoutOptions.LastColumn: Last 1-based column affected by cell style options. Defaults to the worksheet used range.

Parameters

excelRowLayoutOptions OfficeIMO.Excel.ExcelRowLayoutOptions required
The instance.
value int? required
The value.

Returns

ExcelRowLayoutOptions The same instance.

Examples

// C# initializer or property                                                // C# fluent
new global::OfficeIMO.Excel.ExcelRowLayoutOptions { LastColumn = value };    excelRowLayoutOptions.LastColumn(value);
public static ExcelRowLayoutOptions Underline(ExcelRowLayoutOptions excelRowLayoutOptions, bool? value = true) #

Sets ExcelRowLayoutOptions.Underline: Optional underline font state applied to cells in the target column span.

Parameters

excelRowLayoutOptions OfficeIMO.Excel.ExcelRowLayoutOptions required
The instance.
value bool? = true optional
The value; true when omitted.

Returns

ExcelRowLayoutOptions The same instance.

Examples

// C# initializer or property                                               // C# fluent
new global::OfficeIMO.Excel.ExcelRowLayoutOptions { Underline = value };    excelRowLayoutOptions.Underline(value);
public static ExcelRowLayoutOptions WrapText(ExcelRowLayoutOptions excelRowLayoutOptions, bool? value = true) #

Sets ExcelRowLayoutOptions.WrapText: Optional wrap-text state applied to cells in the target column span.

Parameters

excelRowLayoutOptions OfficeIMO.Excel.ExcelRowLayoutOptions required
The instance.
value bool? = true optional
The value; true when omitted.

Returns

ExcelRowLayoutOptions The same instance.

Examples

// C# initializer or property                                              // C# fluent
new global::OfficeIMO.Excel.ExcelRowLayoutOptions { WrapText = value };    excelRowLayoutOptions.WrapText(value);