com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Class Heading

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


    public final class Heading
    extends TextFragment

    Represents heading.

    • Constructor Detail

      • Heading

        public Heading()

        For internal usage only

      • Heading

        public Heading(int level)

        Initializes a new instance of the Cell class.

        Parameters:
        level - The headings level.
    • Method Detail

      • getTocPage

        public Page getTocPage()

        Gets the page that contains this heading.

        Returns:
        The page.
      • setTocPage

        public void setTocPage(Page value)

        Sets the page that contains this heading.

        Parameters:
        value - The page.
      • getTop

        public double getTop()

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

        Returns:
        The top Y value
      • setTop

        public void setTop(double value)

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

        Parameters:
        value - The top Y value
      • getStartNumber

        public int getStartNumber()

        Gets the heading start number.

        Returns:
        Value: The startNumber.
      • setStartNumber

        public void setStartNumber(int value)

        Gets the heading start number.

        Value: The startNumber.
        Parameters:
        value - The startNumber.
      • isAutoSequence

        public boolean isAutoSequence()

        Gets the heading should be numered automatically.

        Returns:
        The IsAutoSequens.
      • setAutoSequence

        public void setAutoSequence(boolean value)

        sets the heading should be numered automatically.

        Parameters:
        value - The IsAutoSequens.
      • isInList

        public boolean isInList()

        Gets the heading should be in toc list.

        Returns:
        The IsInList.
      • setInList

        public void setInList(boolean value)

        sets the heading should be in toc list.

        Parameters:
        value - The IsInList.
      • getDestinationPage

        public Page getDestinationPage()

        Gets the destination page.

        Returns:
        The destination page.
      • setDestinationPage

        public void setDestinationPage(Page value)

        sets the destination page.

        Parameters:
        value - The destination page.
      • getLevel

        public int getLevel()

        Gets the level.

        Returns:
        The heading level.
      • setLevel

        public void setLevel(int value)

        sets the level.

        Parameters:
        value - The heading level.
      • getStyle

        public int getStyle()

        Gets or sets style.

        Returns:
        The heading style.
      • setStyle

        public void setStyle(int value)

        sets or sets style.

        Parameters:
        value - The heading style.
        See Also:
        NumberingStyle
      • getUserLabel

        public TextSegment getUserLabel()

        Gets or sets user label.

        Returns:
        TextSegment object
      • setUserLabel

        public void setUserLabel(TextSegment value)

        Gets or sets user label.

        Parameters:
        value - TextSegment object
      • deepClone

        public Object deepClone()

        Clone the heading.

        Specified by:
        deepClone in interface com.aspose.ms.System.ICloneable
        Overrides:
        deepClone in class TextFragment
        Returns:
        The cloned object