ODF .NET Class Library
Show/Hide TOC

# Heading Class

Define the division structure for a document. A chapter or section begins with a heading and extends to the next heading at the same or higher level.

## Definition

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

    public class Heading : ITextContent, IIndexContent,
    	IContentElement, ICellContent, IHeaderFooterContent

VB

    Public Class Heading
    	Implements ITextContent, IIndexContent, IContentElement, ICellContent,
    	IHeaderFooterContent

Inheritance
  Object Heading

Implements
  ICellContent, IContentElement, IIndexContent, ITextContent, IHeaderFooterContent

## Constructors

Heading | Initializes a new instance of the Heading class.

## Properties

Content | Contains IParagraphContent objects.
IsListHeader | Specifies the appearance of a specific heading without numbering.The defined values for the text:is-list-header attribute are: - false: heading will be numbered. - true: heading will be not numbered, even if an explicit list-style is given. The default value for this attribute is false.
Level | Specifies the level of a heading, starting with 1. Headings without a level attribute are assumed to be at level 1.
Number | Contains the text of a formatted number which is present when a list style is applied to an element whose corresponding list level style specifies that the list label is a number. This text may be used by consumers that do not support the automatic generation of numbering but should be ignored by consumers that do support it.
RestartNumbering | Specifies whether to restart the numbering of headings.The defined values for the text:restart-numbering attribute are: - false: numbering of headings does not restart. - true: numbering of headings does restart. The default value for this attribute is false.
StartValue | Specifies the value that restarts numbering at the current heading.
Style | Specifies the style that shall have the family paragraph. If a conditional style is applied, this attribute has the name of the style that was the result of the conditional style evaluation.

## Methods

Add(Annotation) | Adds an Annotation object to the content.
Add(AttributedText) | Adds an AttributedText object to the content.
Add(Bookmark) | Adds a Bookmark object to the content.
Add(BookmarkEnd) | Adds a BookmarkEnd object to the content.
Add(BookmarkStart) | Adds a BookmarkStart object to the content.
Add(Change) | Adds a Change object to the content.
Add(ChangeEnd) | Adds a ChangeEnd object to the content.
Add(ChangeStart) | Adds a ChangeStart object to the content.
Add(Field) | Adds a Field object to the content.
Add(Hyperlink) | Adds a Hyperlink object to the content.
Add(IParagraphContent) | Adds a IParagraphContent object to the content.
Add(Note) | Adds a Note object to the content.
Add(PointReference) | Adds a PointReference object to the content.
Add(RangeReference) | Adds a RangeReference object to the content.
Add(Ruby) | Adds a Ruby object to the content.
Add(Shape) | Adds a Shape object to the content.
Add(String) | Adds a string object to the content.
Add(Text) | Adds a Text object to the content.
AddLineBreak | Adds a single line break to the content.
AddSpace | Adds a single space to the content.
AddSpace(Int32) | Adds a single space to the content.
AddTab | Adds a single tab to the content.
Clone | Creates a new object that is a deep copy of the current instance.
Equals | (Inherited from Object)
Finalize | (Inherited from Object)
GetContentElements | Returns all content elements.
GetHashCode | (Inherited from Object)
GetParent | Returns the parent element.
GetType | (Inherited from Object)
MemberwiseClone | (Inherited from Object)
ToString | Converts the value of the current Heading object to its equivalent string representation. (Overrides ObjectToString)

## See Also

#### Reference

Independentsoft.Office.Odf Namespace