public class TabStops
extends com.aspose.ms.System.Collections.CollectionBase
implements com.aspose.ms.System.ICloneable
Represents a collection of TabStop
objects.
[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 |
---|
TabStops()
Initializes a new instance of the
TabStops class. |
Modifier and Type | Method and Description |
---|---|
TabStop |
add()
Initializes a new instance of the
TabStop class and add it to the
TabStops collection. |
TabStop |
add(float position)
Initializes a new instance of the
TabStop class with specified position and
add it to the TabStops collection. |
TabStop |
add(float position,
int leaderType)
Initializes a new instance of the
TabStop class with specified position and leader
type and add it to the TabStops collection. |
void |
add(String position) |
Object |
deepClone()
Clones a new
TabStops objects. |
TabStop |
get_Item(int index)
Gets or sets a
TabStop object from the collection according to TabStop index. |
void |
insert(float position) |
void |
remove(TabStop stop)
Removes a
TabStop object from the collection. |
void |
set_Item(int index,
TabStop value) |
public TabStop add()
Initializes a new instance of the TabStop
class and add it to the
TabStops collection.
TabStop
object.public TabStop add(float position)
Initializes a new instance of the TabStop
class with specified position and
add it to the TabStops collection.
position
- The position of the tab stop.TabStop
object.public void add(String position)
public void insert(float position)
public TabStop add(float position, int leaderType)
Initializes a new instance of the TabStop
class with specified position and leader
type and add it to the TabStops collection.
position
- The position of the tab stop.leaderType
- The leader type of the tab stop.TabStop
object.public void remove(TabStop stop)
Removes a TabStop
object from the collection.
stop
- public Object deepClone()
Clones a new TabStops
objects.
deepClone
in interface com.aspose.ms.System.ICloneable
TabStops
object.public TabStop get_Item(int index)
Gets or sets a TabStop
object from the collection according to TabStop index.
get_Item
in interface com.aspose.ms.System.Collections.IList
get_Item
in class com.aspose.ms.System.Collections.CollectionBase
public void set_Item(int index, TabStop value)
Copyright © 2016 Aspose. All Rights Reserved.