Class RtfPageSetting
- Namespace
- iTextSharp.text.rtf.document
- Assembly
- iTextSharp.LGPLv2.Core.dll
The RtfPageSetting stores the page size / page margins for a RtfDocument. INTERNAL CLASS - NOT TO BE USED DIRECTLY @version $Id: RtfPageSetting.cs,v 1.5 2008/05/16 19:30:51 psoares33 Exp $ @author Mark Hall (Mark.Hall@mail.room3b.eu) @author Thomas Bickel (tmb99@inode.at)
public class RtfPageSetting : RtfElement, IRtfExtendedElement, IRtfBasicElement, IRtfElementInterface
- Inheritance
-
RtfPageSetting
- Implements
- Inherited Members
Constructors
RtfPageSetting(RtfDocument)
Constructs a new RtfPageSetting object belonging to a RtfDocument.
public RtfPageSetting(RtfDocument doc)
Parameters
doc
RtfDocumentThe RtfDocument this RtfPageSetting belongs to
Methods
GetMarginBottom()
Gets the bottom margin
public int GetMarginBottom()
Returns
- int
Returns the bottom margin
GetMarginLeft()
Gets the left margin
public int GetMarginLeft()
Returns
- int
Returns the left margin
GetMarginRight()
Gets the right margin
public int GetMarginRight()
Returns
- int
Returns the right margin
GetMarginTop()
Gets the top margin
public int GetMarginTop()
Returns
- int
Returns the top margin
GetPageHeight()
Gets the page height
public int GetPageHeight()
Returns
- int
Returns the page height
GetPageWidth()
Gets the page width
public int GetPageWidth()
Returns
- int
Returns the page width
SetMarginBottom(int)
Sets the bottom margin
public void SetMarginBottom(int marginBottom)
Parameters
marginBottom
intThe bottom margin to use
SetMarginLeft(int)
Sets the left margin to use
public void SetMarginLeft(int marginLeft)
Parameters
marginLeft
intThe left margin to use
SetMarginRight(int)
Sets the right margin to use
public void SetMarginRight(int marginRight)
Parameters
marginRight
intThe right margin to use
SetMarginTop(int)
Sets the top margin to use
public void SetMarginTop(int marginTop)
Parameters
marginTop
intThe top margin to use
SetPageHeight(int)
Sets the page height to use
public void SetPageHeight(int pageHeight)
Parameters
pageHeight
intThe page height to use
SetPageSize(Rectangle)
Set the page size to use. This method will use guessFormat to try to guess the correct page format. If no format could be guessed, the sizes from the pageSize are used and the landscape setting is determined by comparing width and height;
public void SetPageSize(Rectangle pageSize)
Parameters
pageSize
RectangleThe pageSize to use
SetPageWidth(int)
Sets the page width to use
public void SetPageWidth(int pageWidth)
Parameters
pageWidth
intThe page width to use
WriteContent(Stream)
unused
public override void WriteContent(Stream outp)
Parameters
outp
Stream
WriteDefinition(Stream)
Writes the page size / page margin definition
public virtual void WriteDefinition(Stream outp)
Parameters
outp
Stream
WriteSectionDefinition(Stream)
Writes the definition part for a new section
public void WriteSectionDefinition(Stream result)
Parameters
result
Stream