API Reference
WordTabStop
Represents a tab stop within a WordParagraph.
Inheritance
- Object
- WordTabStop
Constructors
public WordTabStop(WordParagraph wordParagraph) #Initializes a new instance of the WordTabStop class for the specified paragraph.
Parameters
- wordParagraph OfficeIMO.Word.WordParagraph
- The paragraph to which this tab stop belongs.
public WordTabStop(WordParagraph wordParagraph, TabStop tab) #Initializes a new instance of the WordTabStop class using an existing TabStop element.
Parameters
- wordParagraph OfficeIMO.Word.WordParagraph
- The paragraph to which this tab stop belongs.
- tab DocumentFormat.OpenXml.Wordprocessing.TabStop
- The underlying Open XML tab stop element.
Methods
AddTab(System.Int32 position, System.Nullable{DocumentFormat.OpenXml.Wordprocessing.TabStopValues} alignment, System.Nullable{DocumentFormat.OpenXml.Wordprocessing.TabStopLeaderCharValues} leader) #Adds a new tab stop to the paragraph and sets this instance to reference it.
Parameters
- position System.Int32
- The position of the tab stop in twentieths of a point.
- alignment System.Nullable{DocumentFormat.OpenXml.Wordprocessing.TabStopValues}
- Optional alignment value. Defaults to Left.
- leader System.Nullable{DocumentFormat.OpenXml.Wordprocessing.TabStopLeaderCharValues}
- Optional leader value. Defaults to None.
Returns
The current WordTabStop instance.
public virtual Boolean Equals(WordTabStop other) #BooleanDetermines whether the specified WordTabStop is equal to the current instance.
Parameters
- other OfficeIMO.Word.WordTabStop
- The tab stop to compare with the current instance.
Returns
true if the tab stops have the same alignment, leader and position; otherwise, false.
public override Boolean Equals(Object obj) #BooleanDetermines whether the specified object is equal to the current instance.
Parameters
- obj System.Object
- The object to compare with the current instance.
Returns
true if the objects are equal; otherwise, false.
public override Int32 GetHashCode() #Int32Returns a hash code for this instance.
Returns
A hash code for the current object.
Inherited Methods
Properties
public TabStopValues Alignment { get; set; } #Gets or sets the alignment type for the tab stop.
public TabStopLeaderCharValues Leader { get; set; } #Gets or sets the leader character displayed before the tab stop.
public Int32 Position { get; set; } #Gets or sets the position of the tab stop in twentieths of a point.