public class TabStop extends Object
Tab is inserted. At least one TabStop must be defined on an
element if you want to use Tabs.
This object can be added to a Paragraph with the method
Paragraph.addTabStops(com.itextpdf.layout.element.TabStop...).| Constructor and Description |
|---|
TabStop(float tabPosition)
Creates a TabStop at the appropriate position.
|
TabStop(float tabPosition,
TabAlignment tabAlignment)
Creates a TabStop at the appropriate position, with a specified tab
alignment.
|
TabStop(float tabPosition,
TabAlignment tabAlignment,
ILineDrawer tabLeader)
Creates a TabStop at the appropriate position, with a specified tab
alignment and an explicitly given line pattern.
|
| Modifier and Type | Method and Description |
|---|---|
TabAlignment |
getTabAlignment()
Returns the alignment of a tab stop, which defines the way the textual content
should be positioned in regard to this tab stop.
|
Character |
getTabAnchor()
Returns the anchor of a tab stop.
|
ILineDrawer |
getTabLeader()
Returns the tab leader of a tab stop, which defines a pattern that
should be repeated until the TabStop is reached.
|
float |
getTabPosition()
Returns the position of a tab stop.
|
void |
setTabAlignment(TabAlignment tabAlignment)
Sets the alignment, which defines the way the textual content
should be positioned in regard to this tab stop.
|
void |
setTabAnchor(Character tabAnchor)
Sets the anchor of a tab stop.
|
void |
setTabLeader(ILineDrawer tabLeader)
Sets the tab leader of a tab stop, which defines a pattern that
should be repeated until the TabStop is reached.
|
public TabStop(float tabPosition)
tabPosition - a float, measured in absolute pointspublic TabStop(float tabPosition,
TabAlignment tabAlignment)
tabPosition - a float, measured in absolute pointstabAlignment - a TabAlignment valuepublic TabStop(float tabPosition,
TabAlignment tabAlignment,
ILineDrawer tabLeader)
tabPosition - a float, measured in absolute pointstabAlignment - a TabAlignment valuetabLeader - the ILineDrawer value, a pattern drawing objectpublic float getTabPosition()
public TabAlignment getTabAlignment()
TabAlignment valuepublic void setTabAlignment(TabAlignment tabAlignment)
tabAlignment - a TabAlignment valuepublic Character getTabAnchor()
Character valuepublic void setTabAnchor(Character tabAnchor)
tabAnchor - a Character valuepublic ILineDrawer getTabLeader()
ILineDrawer value, a pattern drawing objectpublic void setTabLeader(ILineDrawer tabLeader)
tabLeader - a ILineDrawer valueCopyright © 1998–2022 iText Group NV. All rights reserved.