New to Telerik Document ProcessingStart a free 30-day trial

TabStop

Class

Defines a tab stop for paragraph text alignment at a specific position with optional leader characters; immutable once created.

Definition

Namespace:Telerik.Windows.Documents.Flow.Model.Styles

Assembly:Telerik.Windows.Documents.Flow.dll

Syntax:

C#
public class TabStop

Inheritance: objectTabStop

Constructors

Creates a tab stop at the specified position with the given alignment type and leader character pattern.

C#
public TabStop(double position, TabStopType type, TabStopLeader leader)
Parameters:positiondouble

The position in device independent pixels (1/96 inch).

typeTabStopType

The tab stop type.

leaderTabStopLeader

The tab stop leader.

Creates a tab stop at the specified position with the given alignment type and no leader.

C#
public TabStop(double position, TabStopType type)
Parameters:positiondouble

The position in device independent pixels (1/96 inch).

typeTabStopType

The tab stop type.

Creates a left-aligned tab stop at the specified position with no leader.

C#
public TabStop(double position)
Parameters:positiondouble

The position in device independent pixels (1/96 inch).

Methods

Determines whether the specified object is equal to the current object.

C#
public override bool Equals(object obj)
Parameters:objobject

The object to compare with the current object.

Returns:

bool

Returns true if the specified object is equal to the current object; otherwise, false.

Overrides: object.Equals(object)

Serves as a hash function for a particular type.

C#
public override int GetHashCode()
Returns:

int

A hash code for the current object.

Overrides: object.GetHashCode()

Operators

Determines whether the specified tab stops are different.

C#
public static bool operator !=(TabStop tabStop, TabStop otherTabStop)
Parameters:tabStopTabStopotherTabStopTabStopReturns:

bool

True if the tab stops are different.

Determines whether the specified tab stops are equal.

C#
public static bool operator ==(TabStop tabStop, TabStop otherTabStop)
Parameters:tabStopTabStopotherTabStopTabStopReturns:

bool

True if the tab stops are equal.

Properties

Gets the repeating character pattern displayed in the space before text reaches this tab stop.

C#
public TabStopLeader Leader { get; }
Property Value:

The tab stop leader.

Gets the horizontal position where text aligns when a tab character is encountered, measured in device independent pixels (1/96 inch).

C#
public double Position { get; }
Property Value:

The position in points.

Gets the alignment behavior applied to text at this tab stop position.

C#
public TabStopType Type { get; }
Property Value:

The tab stop type.