Class RtfTab
- Namespace
- iTextSharp.text.rtf.text
- Assembly
- iTextSharp.LGPLv2.Core.dll
The RtfTab encapsulates a tab position and tab type in a paragraph. To add tabs to a paragraph construct new RtfTab objects with the desired tab position and alignment and then add them to the paragraph. In the actual text the tabs are then defined as standard \t characters. RtfTab tab = new RtfTab(300, RtfTab.TAB_LEFT_ALIGN); Paragraph para = new Paragraph(); para.Add(tab); para.Add("This paragraph has a\ttab defined."); @version $Revision: 1.5 $ @author Mark Hall (Mark.Hall@mail.room3b.eu)
public class RtfTab : RtfAddableElement, IElement, IRtfBasicElement, IRtfElementInterface
- Inheritance
-
RtfTab
- Implements
- Inherited Members
Constructors
RtfTab(float, int)
Constructs a new RtfTab with the given position and type. The position is in standard iText points. The type is one of the tab alignment constants defined in the RtfTab.
public RtfTab(float position, int type)
Parameters
Fields
TAB_CENTER_ALIGN
A tab where the text is centre aligned.
public const int TAB_CENTER_ALIGN = 1
Field Value
TAB_DECIMAL_ALIGN
A tab where the text is aligned on the decimal character. Which character that is depends on the language settings of the viewer.
public const int TAB_DECIMAL_ALIGN = 3
Field Value
TAB_LEFT_ALIGN
A tab where the text is left aligned.
public const int TAB_LEFT_ALIGN = 0
Field Value
TAB_RIGHT_ALIGN
A tab where the text is right aligned.
public const int TAB_RIGHT_ALIGN = 2
Field Value
Methods
WriteContent(Stream)
Writes the tab settings.
public override void WriteContent(Stream outp)
Parameters
outp
Stream