Class RtfDirectContent
- Namespace
- iTextSharp.text.rtf.direct
- Assembly
- iTextSharp.LGPLv2.Core.dll
The RtfDirectContent makes it possible to directly add RTF code into an RTF document. This can be used to directly add RTF fragments that have been created with other RTF editors. One important aspect is that font and color numbers will not be modified. This means that the fonts and colors visible in the final document might not be equivalent with those set on the direct content. For convenience the RtfDirectContent provides a DIRECT_SOFT_LINEBREAK constant that makes it possible to easily add soft line-breaks anywhere in the RTF document. @author Mark Hall (Mark.Hall@mail.room3b.eu)
public class RtfDirectContent : RtfAddableElement, IElement, IRtfBasicElement, IRtfElementInterface
- Inheritance
-
RtfDirectContent
- Implements
- Inherited Members
Constructors
RtfDirectContent(string)
Constructs a new RtfDirectContent with the content to add.
public RtfDirectContent(string directContent)
Parameters
directContent
stringThe content to add.
Fields
DirectSoftLinebreak
Add the DIRECT_SOFT_LINEBREAK to the Document to insert a soft line-break at that position.
public static readonly RtfDirectContent DirectSoftLinebreak
Field Value
Methods
WriteContent(Stream)
Writes the element content to the given output stream.
public override void WriteContent(Stream outp)
Parameters
outp
Stream