# ExcelHeaderFooterSectionFluent

The fluent methods of ExcelHeaderFooterSection, 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 [ExcelHeaderFooterSection](/api/excel/officeimo-excel-excelheaderfootersection/), 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
- ExcelHeaderFooterSectionFluent

Filter members 

Show inherited

## Methods

`public static ExcelHeaderFooterSection Image(ExcelHeaderFooterSection excelHeaderFooterSection, byte[] imageBytes, string contentType = "image/png", OfficeLength? width = null, OfficeLength? height = null)` [#](#method-image-officeimo-excel-excelheaderfootersection-byte-string-nullable-officeimo-officelength-nullable-officeimo-officelength)

Sets the section picture and adds the &G placeholder to its text.

Parameters

**excelHeaderFooterSection OfficeIMO.Excel.ExcelHeaderFooterSection required**

The instance.

**imageBytes byte[] required**

Image bytes.

**contentType string = "image/png" optional**

Image content type, such as image/png or image/jpeg.

**width OfficeIMO.OfficeLength? = null optional**

Optional physical width; inferred from the image when omitted.

**height OfficeIMO.OfficeLength? = null optional**

Optional physical height; inferred from the image when omitted.

Returns

`ExcelHeaderFooterSection` The same instance.

`public static ExcelHeaderFooterSection Text(ExcelHeaderFooterSection excelHeaderFooterSection, string value)` [#](#method-text-officeimo-excel-excelheaderfootersection-string)

Sets [ExcelHeaderFooterSection.Text](/api/excel/officeimo-excel-excelheaderfootersection/): Section text. Excel codes such as &P (page), &N (pages), &D (date), &A (sheet name) and &G (picture) are kept; other ampersands are written literally. An empty string clears the section.

Parameters

**excelHeaderFooterSection OfficeIMO.Excel.ExcelHeaderFooterSection required**

The instance.

**value string required**

The value.

Returns

`ExcelHeaderFooterSection` The same instance.

Examples

```csharp
// C# initializer or property             // C# fluent
excelHeaderFooterSection.Text = value;    excelHeaderFooterSection.Text(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:2E0E679145333FAD38D355517209977F0FC98A9FF8DA30BB4B35013FB89BEAEA -->
