Table of Contents

Class RtfParserState

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

The RtfParserState contains the state information for the parser. The current state object is pushed/popped in a stack when a group change is made. When an open group is encountered, the current state is copied and then pushed on the top of the stack When a close group is encountered, the current state is overwritten with the popped value from the top of the stack @author Howard Shank (hgshank@yahoo.com) @since 2.0.8

public class RtfParserState
Inheritance
RtfParserState
Inherited Members

Constructors

RtfParserState()

Default constructor

public RtfParserState()

RtfParserState(RtfParserState)

Copy constructor

public RtfParserState(RtfParserState orig)

Parameters

orig RtfParserState

The object to copy

Fields

CtrlWordHandler

The current control word handler.

public object CtrlWordHandler

Field Value

object

CtrlWordHandlers

Stack containing control word handlers. There could be multiple control words in a group.

public Stack<object> CtrlWordHandlers

Field Value

Stack<object>

Destination

The current destination.

public RtfDestination Destination

Field Value

RtfDestination

GroupHandler

The control word set as the group handler.

public object GroupHandler

Field Value

object

IsExtendedDestination

Flag indicating if this is an extended destination * control word

public bool IsExtendedDestination

Field Value

bool

NewGroup

Flag to indicate if last token was an open group token '{'

public bool NewGroup

Field Value

bool

ParserState

The parser state.

public int ParserState

Field Value

int

Properties

public RtfProperty Properties

Field Value

RtfProperty

Text

The parsed value for the current group/control word.

public StringBuilder Text

Field Value

StringBuilder

TokeniserState

The tokeniser state.

public int TokeniserState

Field Value

int