Heading

Overview

Heading is a class in Aspose.PDF FOSS for .NET. Inherits from: BaseParagraph.

Represents a TOC heading entry that links to a destination page.

This class provides 3 methods for working with Heading objects in .NET programs. Available methods include: Clone, CloneWithSegments, Heading. All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package. Properties: DestinationPage, HorizontalAlignment, Hyperlink, HyperlinkText, IsAutoSequence, IsFirstParagraphInColumn, and 16 more.

Properties

NameTypeAccessDescription
LevelintRead/WriteHeading level (1-based).
StyleNumberingStyleRead/WriteNumbering style used for auto-numbered headings.
SegmentsTextSegmentCollectionReadText segments of this heading entry.
TocPagePage?Read/WriteThe TOC page this heading belongs to.
DestinationPagePage?Read/WriteThe destination page this heading links to.
TopdoubleRead/WriteY coordinate (in points) of the destination on DestinationPage that this TOC entry’s link points to.
IsInListboolRead/WriteWhether the heading is inserted into the TOC list.
IsAutoSequenceboolRead/WriteWhether the heading number is auto-incremented.
TextStateAspose.Pdf.Text.TextStateRead/WriteDefault text state applied to the heading text.
TextstringRead/WriteConvenience text accessor — sets a single TextSegment as the heading text.
StartNumberintRead/WriteHeading auto-sequence start number.
UserLabelTextSegment?Read/WriteCustom user label shown in place of the auto number.
HorizontalAlignmentHorizontalAlignmentRead/WriteHorizontal alignment applied to this paragraph.
VerticalAlignmentVerticalAlignmentRead/WriteVertical alignment applied to this paragraph.
MarginMarginInfo?Read/WriteOuter-margin info applied to this paragraph.
IsFirstParagraphInColumnboolRead/WriteForce the paragraph to start a new column.
IsKeptWithNextboolRead/WriteKeep this paragraph on the same page as the next one.
IsInNewPageboolRead/WriteForce the paragraph to start on a new page.
IsInLineParagraphboolRead/WriteInline paragraph flag (does not start a new line).
HyperlinkTextstring?Read/WriteLegacy string-typed hyperlink target.
HyperlinkHyperlink?Read/WriteTyped hyperlink decoration applied to the paragraph.
ZIndexintRead/WriteZ-order index used by the DOM renderer.

Methods

SignatureDescription
Heading(level: int)Calls Heading on this Heading instance.
Clone()Shallow clone of this heading.
CloneWithSegments()Clone the heading and copy its segments by reference.

See Also