Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Introducedin
4.5.1
4.5.1
Description

Excerpt

Returns a section of the header.

Signature
C#
C#

public HeaderFooterSection GetHeader(HeaderFooterSection.Section section)
Signature
vb.net
vb.net

Public Function GetHeader(ByVal section As HeaderFooterSection.Section) As HeaderFooterSection

Parameters

Param
section
section

The section of the header to return

Returns

A HeaderFooterSection object representing the specified section of the header

Example
Code Block
csharp
csharp
titleC#
          //--- Get the right header of the first worksheet
          HeaderFooterSection myLeftFooter = WB[0].PageSetup.GetHeader(HeaderFooterSection.Section.Right);
Code Block
vb.net
vb.net
titlevb.net
          '--- Get the right header of the first worksheet
          Dim myLeftFooter As HeaderFooterSection = WB[0].PageSetup.GetHeader(HeaderFooterSection.Section.Right)
        
Remarks

You can use a HeaderFooterSection object to manipulate a given section of the header or footer, such as the text or image that appears in that section. Note that the total length of the text in all sections of the header may not exceed 255 characters.