Class RtfTotalPageNumber
- Namespace
- iTextSharp.text.rtf.field
- Assembly
- iTextSharp.LGPLv2.Core.dll
The RtfTotalPageNumber provides the total number of pages field in rtf documents. @author Jose Hurtado (jose.hurtado@gft.com) @author Mark Hall (Mark.Hall@mail.room3b.eu)
public class RtfTotalPageNumber : RtfField, IElement, IRtfBasicElement, IRtfElementInterface
- Inheritance
-
RtfTotalPageNumber
- Implements
- Inherited Members
Constructors
RtfTotalPageNumber()
Constructs a RtfTotalPageNumber. This can be added anywhere to add a total number of pages field.
public RtfTotalPageNumber()
RtfTotalPageNumber(Font)
Constructs a RtfTotalPageNumber with a specified Font. This can be added anywhere to add a total number of pages field.
public RtfTotalPageNumber(Font font)
Parameters
font
Font
RtfTotalPageNumber(RtfDocument)
Constructs a RtfTotalPageNumber object.
public RtfTotalPageNumber(RtfDocument doc)
Parameters
doc
RtfDocumentThe RtfDocument this RtfTotalPageNumber belongs to
RtfTotalPageNumber(RtfDocument, Font)
Constructs a RtfTotalPageNumber object with a specific font.
public RtfTotalPageNumber(RtfDocument doc, Font font)
Parameters
doc
RtfDocumentThe RtfDocument this RtfTotalPageNumber belongs to
font
FontThe Font to use
Methods
WriteFieldInstContent(Stream)
Writes the field NUMPAGES instruction with Arabic format: "NUMPAGES \\* Arabic".
protected override void WriteFieldInstContent(Stream oupt)
Parameters
oupt
Stream
WriteFieldResultContent(Stream)
Writes the field result content "1"
protected override void WriteFieldResultContent(Stream oupt)
Parameters
oupt
Stream