public class TabStops extends XmlEntityWithInternals implements com.aspose.ms.System.ICloneable
Represents a collection of TabStop
objects.
[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>
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)
Initializes a new instance of the
TabStop class with specified position as raw value(like '5.0inch') and
add it to the TabStops collection. |
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. |
int |
getCount()
Initializes a new instance of the
TabStop class with specified position and
add it to the TabStops collection. |
void |
remove(TabStop stop)
Removes a
TabStop object from the collection. |
void |
set_Item(int index,
TabStop value) |
load
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 int getCount()
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)
Initializes a new instance of the TabStop
class with specified position as raw value(like '5.0inch') and
add it to the TabStops collection.
position
- The position of the tab stop.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.
public void set_Item(int index, TabStop value)
Copyright © 2014 Aspose. All Rights Reserved.