Class TabStops
- Namespace
- MigraDoc.DocumentObjectModel
- Assembly
- MigraDoc.DocumentObjectModel.dll
A TabStops collection represents all TabStop objects in a paragraph.
public class TabStops : DocumentObjectCollection
- Inheritance
-
objectTabStops
- Inherited Members
- Extension Methods
Constructors
- TabStops()
Initializes a new instance of the TabStops class.
Fields
- TabStopPrecision
Specifies the minimal spacing between two TabStop positions in points.
Properties
- DefinesTabStops
Indicates whether there are TabStops defined in this collection.
- this[int]
Gets a TabStop by its index.
- TabsCleared
Gets the information if the collection is marked as cleared. Additionally, 'TabStops = null' is written to the DDL stream when serialized. Further setting TabsCleared to true can be used to suppress inheriting TabStops, if needed for a user interface allowing interactive editing and just-in-time calculation of the effective style based on inheritance. This concept differs from Word’s object model, which seems to retain a list of TabStop positions to remove, if inherited TabStops are removed in Word’s Style editing dialog.
- Values
Gets the underlying internal nullable values for the properties of this document object.
Methods
- AddTabStop(TabStop)
Adds a TabStop object to the collection. If a TabStop with the same position already exists, it is replaced by the new TabStop.
- AddTabStop(Unit)
Adds a TabStop object at the specified position to the collection. If a TabStop with the same position already exists, it is replaced by the new TabStop.
- AddTabStop(Unit, TabAlignment)
Adds a TabStop object to the collection and sets its alignment.
- AddTabStop(Unit, TabAlignment, TabLeader)
Adds a TabStop object to the collection and sets its alignment and leader.
- AddTabStop(Unit, TabLeader)
Adds a TabStop object to the collection and sets its leader.
- ClearAll()
Clears all TabStop objects from the collection. Additionally, 'TabStops = null' is written to the DDL stream when serialized.
- Clone()
Creates a deep copy of this object.
- GetEnumerator()
Returns an enumerator that iterates through the tab stop collection.
- GetTabStopAt(Unit)
Gets a TabStop by its position. Returns null if no matching tab stop can be found. Note that Removed TabStops are also taken into account.
- IsNull()
Determines whether this instance is null (not set).
- RemoveTabStop(Unit)
Adds a TabStop object to the collection marked to remove the tab stop at the given position.
- TabStopExists(Unit)
Returns whether a TabStop exists at the given position. Note that Removed TabStops are also taken into account.