Inheritance: java.lang.Object, com.aspose.pdf.BaseParagraph com.aspose.pdf.TextFragment com.aspose.pdf.Heading, com.aspose.pdf.BaseParagraph, com.aspose.pdf.TextFragment com.aspose.pdf.Heading, com.aspose.pdf.TextFragment, com.aspose.pdf.Heading

All Implemented Interfaces: com.aspose.ms.System.ICloneable

public final class Heading extends TextFragment

Represents heading.

Constructors

ConstructorDescription
HeadingFor internal usage only
HeadingInitializes a new instance of the Cell class.

Methods

MethodDescription
cloneWithSegmentsClone the heading with all segments.
deepCloneClone the heading.
getDestinationPageGets the destination page.
getLevelGets the level.
getStartNumberGets the heading start number.
getStyleGets or sets style.
getTocPageGets the page that contains this heading.
getTopGets the top Y of this headings(for internal use).
getUserLabelGets or sets user label.
isAutoSequenceGets the heading should be numered automatically.
isInListGets the heading should be in toc list.
setAutoSequencesets the heading should be numered automatically.
setDestinationPagesets the destination page.
setInListsets the heading should be in toc list.
setLevelsets the level.
setStartNumberGets the heading start number. Value: The startNumber.
setStylesets or sets style.
setTocPageSets the page that contains this heading.
setTopsets the top Y of this headings(for internal use).
setUserLabelGets or sets user label.

Heading

public Heading()

For internal usage only

Heading

public Heading(int level)

Initializes a new instance of the Cell class.

Parameters:

ParameterTypeDescription
levelThe headings level.

cloneWithSegments

public Object cloneWithSegments()

Clone the heading with all segments.

Returns: The cloned object

deepClone

public Object deepClone()

Clone the heading.

Returns: The cloned object

getDestinationPage

public Page getDestinationPage()

Gets the destination page.

Returns: The destination page.

getLevel

public int getLevel()

Gets the level.

Returns: The heading level.

getStartNumber

public int getStartNumber()

Gets the heading start number.

Returns: Value: The startNumber.

getStyle

public NumberingStyle getStyle()

Gets or sets style.

Returns: The heading style.

getTocPage

public Page getTocPage()

Gets the page that contains this heading.

Returns: The page.

getTop

public double getTop()

Gets the top Y of this headings(for internal use).

Returns: The top Y value

getUserLabel

public TextSegment getUserLabel()

Gets or sets user label.

Returns: TextSegment object

isAutoSequence

public boolean isAutoSequence()

Gets the heading should be numered automatically.

Returns: The IsAutoSequens.

isInList

public boolean isInList()

Gets the heading should be in toc list.

Returns: The IsInList.

setAutoSequence

public void setAutoSequence(boolean value)

sets the heading should be numered automatically.

Parameters:

ParameterTypeDescription
valueThe IsAutoSequens.

setDestinationPage

sets the destination page.

setInList

public void setInList(boolean value)

sets the heading should be in toc list.

Parameters:

ParameterTypeDescription
valueThe IsInList.

setLevel

public void setLevel(int value)

sets the level.

Parameters:

ParameterTypeDescription
valueThe heading level.

setStartNumber

public void setStartNumber(int value)

Gets the heading start number. Value: The startNumber.

Parameters:

ParameterTypeDescription
valueThe startNumber.

setStyle

sets or sets style.

setTocPage

Sets the page that contains this heading.

setTop

public void setTop(double value)

sets the top Y of this headings(for internal use).

Parameters:

ParameterTypeDescription
valueThe top Y value

setUserLabel

Gets or sets user label.