# ExcelRowLayoutOptionsFluent

The fluent methods of ExcelRowLayoutOptions, generated from its public properties: A property-named method sets a property and a singular-named method adds…

Class 

`OfficeIMO.Excel`

**Namespace**

`OfficeIMO.Excel`

**Assembly**

`OfficeIMO.Excel`

**Modifiers**

static

The fluent methods of [ExcelRowLayoutOptions](/api/excel/officeimo-excel-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

Filter members 

Show inherited

## Methods

`public static ExcelRowLayoutOptions AutoFit(ExcelRowLayoutOptions excelRowLayoutOptions, bool value = true)` [#](#method-autofit-officeimo-excel-excelrowlayoutoptions-boolean)

Sets [ExcelRowLayoutOptions.AutoFit](/api/excel/officeimo-excel-excelrowlayoutoptions/): 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

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

`public static ExcelRowLayoutOptions BackgroundColor(ExcelRowLayoutOptions excelRowLayoutOptions, OfficeColor? value)` [#](#method-backgroundcolor-officeimo-excel-excelrowlayoutoptions-nullable-officeimo-officecolor)

Sets [ExcelRowLayoutOptions.BackgroundColor](/api/excel/officeimo-excel-excelrowlayoutoptions/): 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

```csharp
// 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)` [#](#method-bold-officeimo-excel-excelrowlayoutoptions-nullable-system-boolean)

Sets [ExcelRowLayoutOptions.Bold](/api/excel/officeimo-excel-excelrowlayoutoptions/): 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

```csharp
// 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)` [#](#method-clearheight-officeimo-excel-excelrowlayoutoptions-boolean)

Sets [ExcelRowLayoutOptions.ClearHeight](/api/excel/officeimo-excel-excelrowlayoutoptions/): 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

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

`public static ExcelRowLayoutOptions FirstColumn(ExcelRowLayoutOptions excelRowLayoutOptions, int? value)` [#](#method-firstcolumn-officeimo-excel-excelrowlayoutoptions-nullable-system-int32)

Sets [ExcelRowLayoutOptions.FirstColumn](/api/excel/officeimo-excel-excelrowlayoutoptions/): 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

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

`public static ExcelRowLayoutOptions FontFamily(ExcelRowLayoutOptions excelRowLayoutOptions, string? value)` [#](#method-fontfamily-officeimo-excel-excelrowlayoutoptions-string)

Sets [ExcelRowLayoutOptions.FontFamily](/api/excel/officeimo-excel-excelrowlayoutoptions/): 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

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

`public static ExcelRowLayoutOptions Height(ExcelRowLayoutOptions excelRowLayoutOptions, ExcelColumnWidth? value)` [#](#method-height-officeimo-excel-excelrowlayoutoptions-nullable-officeimo-excel-excelcolumnwidth)

Sets [ExcelRowLayoutOptions.Height](/api/excel/officeimo-excel-excelrowlayoutoptions/): Explicit row height as characters or a physical length. Use [ExcelRowLayoutOptions.ClearHeight](/api/excel/officeimo-excel-excelrowlayoutoptions/) 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

```csharp
// 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)` [#](#method-hidden-officeimo-excel-excelrowlayoutoptions-nullable-system-boolean)

Sets [ExcelRowLayoutOptions.Hidden](/api/excel/officeimo-excel-excelrowlayoutoptions/): 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

```csharp
// 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)` [#](#method-italic-officeimo-excel-excelrowlayoutoptions-nullable-system-boolean)

Sets [ExcelRowLayoutOptions.Italic](/api/excel/officeimo-excel-excelrowlayoutoptions/): 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

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

`public static ExcelRowLayoutOptions LastColumn(ExcelRowLayoutOptions excelRowLayoutOptions, int? value)` [#](#method-lastcolumn-officeimo-excel-excelrowlayoutoptions-nullable-system-int32)

Sets [ExcelRowLayoutOptions.LastColumn](/api/excel/officeimo-excel-excelrowlayoutoptions/): 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

```csharp
// 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)` [#](#method-underline-officeimo-excel-excelrowlayoutoptions-nullable-system-boolean)

Sets [ExcelRowLayoutOptions.Underline](/api/excel/officeimo-excel-excelrowlayoutoptions/): 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

```csharp
// 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)` [#](#method-wraptext-officeimo-excel-excelrowlayoutoptions-nullable-system-boolean)

Sets [ExcelRowLayoutOptions.WrapText](/api/excel/officeimo-excel-excelrowlayoutoptions/): 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

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

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

<!-- PowerForge markdown artifact sha256:D253AC70B9FEBB2F99CC1446DFC18D98854FC2574B4ABBD4824997504319074E -->
