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
intThe borders to add (Rectangle.LEFT, Rectangle.RIGHT, Rectangle.TOP, Rectangle.BOTTOM, Rectangle.BOX)
borderStyle
intThe style of border to add (from RtfBorder)
borderWidth
floatThe border width to use
borderColor
BaseColorThe 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
RtfDocumentThe RtfDocument this RtfBorderGroup belongs to
borderType
intThe type of borders this RtfBorderGroup contains
bordersToUse
intThe borders to add (Rectangle.LEFT, Rectangle.RIGHT, Rectangle.TOP, Rectangle.BOTTOM, Rectangle.BOX)
borderWidth
floatThe border width to use
borderColor
BaseColorThe 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
RtfDocumentThe RtfDocument this RtfBorderGroup belongs to
borderType
intThe type of borders this RtfBorderGroup contains
borderGroup
RtfBorderGroupThe 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
intThe borders to add (Rectangle.LEFT, Rectangle.RIGHT, Rectangle.TOP, Rectangle.BOTTOM, Rectangle.BOX)
borderStyle
intThe style of border to add (from RtfBorder)
borderWidth
floatThe border width to use
borderColor
BaseColorThe 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
intThe borders to remove (from Rectangle)
WriteContent(Stream)
Writes the borders of this RtfBorderGroup
public override void WriteContent(Stream outp)
Parameters
outp
Stream