public class TabStop extends XmlBoundEntity
Represents a custom Tab stop position in a paragraph.
[Java] //Create a text object Text t1 = new Text("This #$TAB is a example for custom TAB stop positions."); //Assign an instance of TabStops to the TabStops property of text object t1.setTabStops ( new TabStops()); //Call Add method of TabStops and pass a specified position as argument t1.getTabStops().add(150); //Call Add method with specified position and tab leader type as Dot t1.getTabStops().add(350,TabLeaderType.Dot); [XML] <Text> <TabStops> <TabStop Position="150" /> <TabStop Position="350" LeaderType="Dot" /> </TabStops> <Segment> This is a example for custom TAB stop positions. </Segment> </Text>
Modifier and Type | Field and Description |
---|---|
int |
AlignmentType |
int |
LeaderType
Gets or sets a
TabLeaderType enum that indicates the tab leader type. |
float |
Position
Gets or sets a float value that indicates the tab stop position.
|
Constructor and Description |
---|
TabStop()
Initializes a new instance of the
TabStop class. |
Copyright © 2014 Aspose. All Rights Reserved.