public final class Heading extends TextFragment
Represents heading.
| Constructor and Description |
|---|
Heading()
For internal usage only
|
Heading(int level)
Initializes a new instance of the Cell class.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
cloneWithSegments()
Clone the heading with all segments.
|
Object |
deepClone()
Clone the heading.
|
Page |
getDestinationPage()
Gets the destination page.
|
int |
getLevel()
Gets the level.
|
int |
getStartNumber()
Gets the heading start number.
|
NumberingStyle |
getStyle()
Gets or sets style.
|
Page |
getTocPage()
Gets the page that contains this heading.
|
double |
getTop()
Gets the top Y of this headings(for internal use).
|
TextSegment |
getUserLabel()
Gets or sets user label.
|
boolean |
isAutoSequence()
Gets the heading should be numered automatically.
|
boolean |
isInList()
Gets the heading should be in toc list.
|
void |
setAutoSequence(boolean value)
sets the heading should be numered automatically.
|
void |
setDestinationPage(Page value)
sets the destination page.
|
void |
setInList(boolean value)
sets the heading should be in toc list.
|
void |
setLevel(int value)
sets the level.
|
void |
setStartNumber(int value)
Gets the heading start number.
|
void |
setStyle(NumberingStyle value)
sets or sets style.
|
void |
setTocPage(Page value)
Sets the page that contains this heading.
|
void |
setTop(double value)
sets the top Y of this headings(for internal use).
|
void |
setUserLabel(TextSegment value)
Gets or sets user label.
|
getBaselinePosition, getEndNote, getFootNote, getForm, getHorizontalAlignment, getPage, getPosition, getRectangle, getReplaceOptions, getSegments, getText, getTextEditOptions, getTextState, getVerticalAlignment, getWrapLinesCount, isolateTextSegments, setBaselinePosition, setEndNote, setFootNote, setHorizontalAlignment, setHyperlink, setMarkedContentProperties, setPosition, setRectangle, setSegments, setText, setTextEditOptions, setVerticalAlignment, setWrapLinesCountgetHyperlink, getMargin, getZIndex, isFirstParagraphInColumn, isInLineParagraph, isInNewPage, isKeptWithNext, setFirstParagraphInColumn, setInLineParagraph, setInNewPage, setKeptWithNext, setMargin, setZIndexpublic Heading()
For internal usage only
public Heading(int level)
Initializes a new instance of the Cell class.
level - The headings level.public Page getTocPage()
Gets the page that contains this heading.
public void setTocPage(Page value)
Sets the page that contains this heading.
value - The page.public double getTop()
Gets the top Y of this headings(for internal use).
public void setTop(double value)
sets the top Y of this headings(for internal use).
value - The top Y valuepublic int getStartNumber()
Gets the heading start number.
public void setStartNumber(int value)
Gets the heading start number.
Value: The startNumber.value - The startNumber.public boolean isAutoSequence()
Gets the heading should be numered automatically.
public void setAutoSequence(boolean value)
sets the heading should be numered automatically.
value - The IsAutoSequens.public boolean isInList()
Gets the heading should be in toc list.
public void setInList(boolean value)
sets the heading should be in toc list.
value - The IsInList.public Page getDestinationPage()
Gets the destination page.
public void setDestinationPage(Page value)
sets the destination page.
value - The destination page.public int getLevel()
Gets the level.
public void setLevel(int value)
sets the level.
value - The heading level.public NumberingStyle getStyle()
Gets or sets style.
public void setStyle(NumberingStyle value)
sets or sets style.
value - The heading style.NumberingStylepublic TextSegment getUserLabel()
Gets or sets user label.
public void setUserLabel(TextSegment value)
Gets or sets user label.
value - TextSegment objectpublic Object deepClone()
Clone the heading.
deepClone in interface com.aspose.ms.System.ICloneabledeepClone in class TextFragmentpublic Object cloneWithSegments()
Clone the heading with all segments.
cloneWithSegments in class TextFragmentCopyright © 2025 Aspose. All Rights Reserved.