Table of Contents

Class RtfTabGroup

Namespace
iTextSharp.text.rtf.text
Assembly
iTextSharp.LGPLv2.Core.dll

The RtfTabGroup is a convenience class if the same tabs are to be added to multiple paragraphs. RtfTabGroup tabs = new RtfTabGroup(); tabs.Add(new RtfTab(70, RtfTab.TAB_LEFT_ALIGN)); tabs.Add(new RtfTab(160, RtfTab.TAB_CENTER_ALIGN)); tabs.Add(new RtfTab(250, RtfTab.TAB_DECIMAL_ALIGN)); tabs.Add(new RtfTab(500, RtfTab.TAB_RIGHT_ALIGN)); Paragraph para = new Paragraph(); para.Add(tabs); para.Add("\tLeft aligned\tCentre aligned\t12,45\tRight aligned"); @version $Revision: 1.5 $ @author Mark Hall (Mark.Hall@mail.room3b.eu)

public class RtfTabGroup : RtfAddableElement, IElement, IRtfBasicElement, IRtfElementInterface
Inheritance
RtfTabGroup
Implements
Inherited Members

Constructors

RtfTabGroup()

Constructs an empty RtfTabGroup.

public RtfTabGroup()

RtfTabGroup(IList<RtfTab>)

Constructs a RtfTabGroup with a set of tabs.

public RtfTabGroup(IList<RtfTab> tabs)

Parameters

tabs IList<RtfTab>

An ArrayList with the RtfTabs to group in this RtfTabGroup.

Methods

Add(RtfTab)

Adds a RtfTab to the list of grouped tabs.

public void Add(RtfTab tab)

Parameters

tab RtfTab

The RtfTab to add.

WriteContent(Stream)

Combines the tab output form all grouped tabs.

public override void WriteContent(Stream outp)

Parameters

outp Stream