Class Parser
Tokenize an RTF document and create a heirarchical document structure of the groups
Inherited Members
Namespace: SharpRtfConvert
Assembly: SharpRtfConvert.dll
Syntax
public class Parser
Constructors
| Edit this page View SourceParser(Stream)
Parse RTF from a stream
Declaration
public Parser(Stream stream)
Parameters
| Type | Name | Description |
|---|---|---|
| Stream | stream | Binary RTF data |
Parser(TextReader)
Parse RTF from a text reader
Declaration
public Parser(TextReader reader)
Parameters
| Type | Name | Description |
|---|---|---|
| TextReader | reader | RTF |
Parser(string)
Parse RTF stored in a string
Declaration
public Parser(string rtf)
Parameters
| Type | Name | Description |
|---|---|---|
| string | rtf | RTF string |
Methods
| Edit this page View SourceClamp(int, int, int)
Declaration
public static int Clamp(int value, int min, int max)
Parameters
| Type | Name | Description |
|---|---|---|
| int | value | |
| int | min | |
| int | max |
Returns
| Type | Description |
|---|---|
| int |
Parse()
Build a document structure
Declaration
public Document Parse()
Returns
| Type | Description |
|---|---|
| Document |
Tokens()
Get a flat list of all the tokens in the RTF document
Declaration
public IEnumerable<IToken> Tokens()
Returns
| Type | Description |
|---|---|
| IEnumerable<IToken> |