public class TabStop extends Object
Represents a custom Tab stop position in a paragraph.
[C#] //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.TabStops = new TabStops(); //Call Add method of TabStops and pass a specified position as argument t1.TabStops.Add(150); //Call Add method with specified position and tab leader type as Dot t1.TabStops.Add(350,TabLeaderType.Dot); [Visual Basic] 'Create a text object Dim t1 As Aspose.Pdf.Generator.Text = New Aspose.Pdf.Generator.Text("This #$TAB is a example for custom TAB stop positions.") 'Call Add method of TabStops and pass a specified position as argument t1.TabStops = New TabStops t1.TabStops.Add(150) 'Initialize an instance of TabStops and call Add method with specified position and tab leader type as Dot t1.TabStops.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>
Constructor and Description |
---|
TabStop()
Initializes a new instance of the
TabStop class. |
Modifier and Type | Method and Description |
---|---|
int |
getAlignmentType()
Gets or sets a
TabAlignmentType enumeration that indicates the custom tab
stop position alignment type. |
int |
getLeaderType()
Gets or sets a
TabLeaderType enum that indicates the tab leader type. |
float |
getPosition()
Gets or sets a float value that indicates the tab stop position.
|
void |
setAlignmentType(int value) |
void |
setLeaderType(int value) |
void |
setPosition(float value) |
public float getPosition()
Gets or sets a float value that indicates the tab stop position.
public void setPosition(float value)
public int getLeaderType()
Gets or sets a TabLeaderType
enum that indicates the tab leader type.
public void setLeaderType(int value)
public int getAlignmentType()
Gets or sets a TabAlignmentType
enumeration that indicates the custom tab
stop position alignment type.
public void setAlignmentType(int value)
Copyright © 2016 Aspose. All Rights Reserved.