Heading
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
| Constructor | Description |
|---|---|
| Heading | For internal usage only |
| Heading | Initializes a new instance of the Cell class. |
Methods
| Method | Description |
|---|---|
| cloneWithSegments | Clone the heading with all segments. |
| deepClone | Clone the heading. |
| getDestinationPage | Gets the destination page. |
| getLevel | Gets the level. |
| getStartNumber | Gets the heading start number. |
| getStyle | Gets or sets style. |
| getTocPage | Gets the page that contains this heading. |
| getTop | Gets the top Y of this headings(for internal use). |
| getUserLabel | Gets or sets user label. |
| isAutoSequence | Gets the heading should be numered automatically. |
| isInList | Gets the heading should be in toc list. |
| setAutoSequence | sets the heading should be numered automatically. |
| setDestinationPage | sets the destination page. |
| setInList | sets the heading should be in toc list. |
| setLevel | sets the level. |
| setStartNumber | Gets the heading start number. Value: The startNumber. |
| setStyle | sets or sets style. |
| setTocPage | Sets the page that contains this heading. |
| setTop | sets the top Y of this headings(for internal use). |
| setUserLabel | Gets 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:
| Parameter | Type | Description |
|---|---|---|
| level | The 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:
| Parameter | Type | Description |
|---|---|---|
| value | The IsAutoSequens. |
setDestinationPage
sets the destination page.
setInList
public void setInList(boolean value)
sets the heading should be in toc list.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | The IsInList. |
setLevel
public void setLevel(int value)
sets the level.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | The heading level. |
setStartNumber
public void setStartNumber(int value)
Gets the heading start number. Value: The startNumber.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | The 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:
| Parameter | Type | Description |
|---|---|---|
| value | The top Y value |
setUserLabel
Gets or sets user label.