Einhugur Word Component for Buoy |

# Document.Header Method

Gets header of requested type from the document, optionally creating new header if header with the requested type does not exist.

Header(
type as HeaderFooterTypes,
createIfNotExists as Boolean) as Header

#### Parameters

type
  Type of the header to request.
createIfNotExists
  If set to true then header will be created if it does not exist

#### Returns

Header
  The requested header or nil if the header did not exist and createIfNotExists was false.

#### Remarks

#### See Also

Document Class