Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

ExcelHeaderFooterSectionFluent

OfficeIMO.Excel

Namespace
OfficeIMO.Excel
Assembly
OfficeIMO.Excel
Modifiers
static

The fluent methods of 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

Methods

public static ExcelHeaderFooterSection Image(ExcelHeaderFooterSection excelHeaderFooterSection, byte[] imageBytes, string contentType = "image/png", OfficeLength? width = null, OfficeLength? height = null) #

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) #

Sets ExcelHeaderFooterSection.Text: 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

// C# initializer or property             // C# fluent
excelHeaderFooterSection.Text = value;    excelHeaderFooterSection.Text(value);