ODF .NET Class Library
Show/Hide TOC

# HeaderStyle Class

Represents the formatting properties for a header element.

## Definition

Namespace: Independentsoft.Office.Odf.Styles
Assembly: Independentsoft.Office.Odf (in Independentsoft.Office.Odf.dll) Version: 3.0.460.1+37fe42d8e65847775742df0a70fdb403ab6fa65f
C#

    public class HeaderStyle

VB

    Public Class HeaderStyle

Inheritance
  Object HeaderStyle

## Constructors

HeaderStyle | Initializes a new instance of the HeaderStyle class.

## Properties

BackgroundColor | Specifies the background color for a footers.
Border | Specifies the border for a header or footer.
BorderLineWidth | Specifies the widths of borders defined by the FO border properties for borders.
BottomBorder | Specifies the bottom border for a header or footer.
BottomBorderLineWidth | Specifies the bottom widths of borders defined by the FO border properties for borders.
BottomMargin | Specifies the percentage that refers to the corresponding bottom margin of a parent style.
BottomPadding | Specifies the bottom padding for a footer.
DynamicSpacing | Specifies whether the header or footer grows into the space between the page body and the header or footer before the height of the page body becomes smaller. The defined values are: -false: header or footers do not grow into the space between the header and footer and the page body. -true: header or footers first grow into the space between the header and footer and the page body.
Height | Specifies the height of an header or footer.
LeftBorder | Specifies a left border for a header or footer.
LeftBorderLineWidth | Specifies the left widths of borders defined by the FO border properties for borders.
LeftMargin | Specifies the percentage that refers to the corresponding left margin of a parent style.
LeftPadding | Specifies the left padding for a footer.
Margin | Specifies the marin for a header or footer.
MinHeight | pecifies a minimum height for a header or footer.
Padding | Specifies the padding for a footer.
RightBorder | Specifies the right border for a header or footer.
RightBorderLineWidth | Specifies the right widths of borders defined by the FO border properties for borders.
RightMargin | Specifies the percentage that refers to the corresponding right margin of a parent style.
RightPadding | Specifies the right padding for a footer.
Shadow | Specifies the shadow effect for a footers.
TopBorder | Specifies the top border for a header or footer.
TopBorderLineWidth | Specifies the top widths of borders defined by the FO border properties for borders.
TopMargin | Specifies the percentage that refers to the corresponding top margin of a parent style.
TopPadding | Specifies the top padding for a footer.

## Methods

Clone | Creates a new object that is a deep copy of the current instance.
Equals | (Inherited from Object)
Finalize | (Inherited from Object)
GetHashCode | (Inherited from Object)
GetType | (Inherited from Object)
MemberwiseClone | (Inherited from Object)
ToString | Converts the value of the current HeaderStyle object to its equivalent string representation. (Overrides ObjectToString)

## See Also

#### Reference

Independentsoft.Office.Odf.Styles Namespace