Table of Contents

Class RtfBorderGroup

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

The RtfBorderGroup represents a collection of RtfBorders to use in a RtfCell or RtfTable. @version \(Version:\) @author Mark Hall (Mark.Hall@mail.room3b.eu)

public class RtfBorderGroup : RtfElement, IRtfBasicElement, IRtfElementInterface
Inheritance
RtfBorderGroup
Implements
Inherited Members

Constructors

RtfBorderGroup()

Constructs an empty RtfBorderGroup.

public RtfBorderGroup()

RtfBorderGroup(int, int, float, BaseColor)

Constructs a RtfBorderGroup with on border style for multiple borders.

public RtfBorderGroup(int bordersToAdd, int borderStyle, float borderWidth, BaseColor borderColor)

Parameters

bordersToAdd int

The borders to add (Rectangle.LEFT, Rectangle.RIGHT, Rectangle.TOP, Rectangle.BOTTOM, Rectangle.BOX)

borderStyle int

The style of border to add (from RtfBorder)

borderWidth float

The border width to use

borderColor BaseColor

The border color to use

RtfBorderGroup(RtfDocument, int, int, float, BaseColor)

Constructs a RtfBorderGroup with certain borders

protected RtfBorderGroup(RtfDocument doc, int borderType, int bordersToUse, float borderWidth, BaseColor borderColor)

Parameters

doc RtfDocument

The RtfDocument this RtfBorderGroup belongs to

borderType int

The type of borders this RtfBorderGroup contains

bordersToUse int

The borders to add (Rectangle.LEFT, Rectangle.RIGHT, Rectangle.TOP, Rectangle.BOTTOM, Rectangle.BOX)

borderWidth float

The border width to use

borderColor BaseColor

The border color to use

RtfBorderGroup(RtfDocument, int, RtfBorderGroup)

Constructs a RtfBorderGroup based on another RtfBorderGroup.

protected RtfBorderGroup(RtfDocument doc, int borderType, RtfBorderGroup borderGroup)

Parameters

doc RtfDocument

The RtfDocument this RtfBorderGroup belongs to

borderType int

The type of borders this RtfBorderGroup contains

borderGroup RtfBorderGroup

The RtfBorderGroup to use as a base

Methods

AddBorder(int, int, float, BaseColor)

Adds borders to the RtfBorderGroup

public void AddBorder(int bordersToAdd, int borderStyle, float borderWidth, BaseColor borderColor)

Parameters

bordersToAdd int

The borders to add (Rectangle.LEFT, Rectangle.RIGHT, Rectangle.TOP, Rectangle.BOTTOM, Rectangle.BOX)

borderStyle int

The style of border to add (from RtfBorder)

borderWidth float

The border width to use

borderColor BaseColor

The border color to use

GetBorders()

Gets the RtfBorders of this RtfBorderGroup

protected INullValueDictionary<int, RtfBorder> GetBorders()

Returns

INullValueDictionary<int, RtfBorder>

The RtfBorders of this RtfBorderGroup

RemoveBorder(int)

Removes borders from the list of borders

public void RemoveBorder(int bordersToRemove)

Parameters

bordersToRemove int

The borders to remove (from Rectangle)

WriteContent(Stream)

Writes the borders of this RtfBorderGroup

public override void WriteContent(Stream outp)

Parameters

outp Stream