• Api Documentation
  • Source Code
Search Results for

    Show / Hide Table of Contents
    • SharpRtfConvert
      • Parser
      • Rtf
      • RtfHtmlSettings
      • RtfSource
    • SharpRtfConvert.Foundation
      • NamedCodePage
      • ParagraphTab
    • SharpRtfConvert.Html
      • HtmlTag
      • HtmlWriterSettings
    • SharpRtfConvert.Model
      • ElementType
      • ExternalPicture
      • Node
      • Picture
    • SharpRtfConvert.Style
      • BorderPosition
      • BorderStyle
      • CellWidthUnit
      • ColorValue
      • Document
      • Font
      • FontFamilyCategory
      • FontPitch
      • HtmlEncapsulation
      • ListLevelDefinition
      • ListStyle
      • ListStyleReference
      • NumberingType
      • TextAlignment
      • UnitType
      • UnitValue
      • VerticalAlignment
      • WritingMode
    • SharpRtfConvert.Tokens
      • AccentSix
      • Author
      • BackgroundColor
      • BackupTime
      • BinaryToken
      • Blue
      • BookmarkEnd
      • BookmarkStart
      • BorderColor
      • BorderShadow
      • BorderSide
      • BorderSpacing
      • BorderStyleTag
      • BorderWidth
      • BottomCellSpacing
      • Category
      • CellBackgroundColor
      • CellBorderSide
      • CellBreak
      • CellDefaults
      • CellMergeHorizontalFirst
      • CellMergeHorizontalPrevious
      • CellMergeVerticalFirst
      • CellMergeVerticalPrevious
      • CellPaddingBottom
      • CellPaddingLeft
      • CellPaddingRight
      • CellPaddingTop
      • CellPaddingUnit
      • CellVerticalAlign
      • CellWidth
      • CellWidthType
      • CellWritingMode
      • CodePage
      • ColorTable
      • Comment
      • Company
      • ContextualSpace
      • ControlTag
      • ControlWord<T>
      • CreateTime
      • Day
      • DefaultCodePage
      • DefaultFontRef
      • DefaultNamedCodePage
      • DefaultTabWidth
      • DiBitmap
      • DocComment
      • EditingTime
      • EmfBlip
      • Field
      • FieldInstructions
      • FieldResult
      • FirstLineIndent
      • FontCategory
      • FontCharSet
      • FontPitchToken
      • FontRef
      • FontSize
      • FontTableTag
      • Footer
      • FooterFirst
      • FooterLeft
      • FooterRight
      • Footnote
      • FootnoteReference
      • ForegroundColor
      • FromHtml
      • GeneratorTag
      • GenericTag
      • GenericWord
      • Green
      • Group
      • GroupEnd
      • HalfCellPadding
      • Header
      • HeaderFirst
      • HeaderLeft
      • HeaderRight
      • HeaderRow
      • Hour
      • HtmlRtf
      • HtmlTagToken
      • HyperlinkBase
      • IToken
      • IWord
      • IgnoreUnrecognized
      • InTable
      • Info
      • InternalVersion
      • IsAllCaps
      • IsBold
      • IsDoubleStrike
      • IsEmbossed
      • IsEngraved
      • IsHidden
      • IsItalic
      • IsOutlined
      • IsShadow
      • IsSmallCaps
      • IsStrikethrough
      • IsUnderline
      • JpegBlip
      • Keywords
      • LeftCellSpacing
      • LeftIndent
      • LevelNumbers
      • LevelText
      • LineBreak
      • LineSpacingMultiple
      • ListDefinition
      • ListId
      • ListLevel
      • ListLevelJustification
      • ListLevelNumber
      • ListLevelType
      • ListOverride
      • ListOverrideTable
      • ListStyleId
      • ListTemplateId
      • ListTextFallback
      • MacPict
      • Manager
      • Minute
      • Month
      • NestedCellBreak
      • NestedRowBreak
      • NestedTableProperties
      • NestingLevel
      • NoNestedTables
      • NonShapePictureTag
      • NumChars
      • NumCharsWs
      • NumPages
      • NumWords
      • NumberingIndent
      • NumberingLevelBody
      • NumberingLevelBullet
      • NumberingLevelContinue
      • NumberingStart
      • NumberingTextAfter
      • NumberingTextBefore
      • NumberingTextFallback
      • NumberingTypeToken
      • ObjectAttachment
      • Operator
      • OutlineLevel
      • PageBreak
      • ParagraphBackgroundColor
      • ParagraphBorderBetween
      • ParagraphBorderSide
      • ParagraphBreak
      • ParagraphDefault
      • ParagraphNumbering
      • PictureBinaryLength
      • PictureHeight
      • PictureHeightGoal
      • PictureScaleX
      • PictureScaleY
      • PictureTag
      • PictureWidth
      • PictureWidthGoal
      • PlainStyle
      • PmMetafile
      • PngBlip
      • PositionOffset
      • PrintTime
      • Red
      • RevisionTime
      • RightCellBoundary
      • RightCellSpacing
      • RightIndent
      • RowAutoFit
      • RowBreak
      • RowDefaults
      • RowHeight
      • RowLeft
      • RowTextAlign
      • Second
      • SectionBreak
      • SectionDefault
      • Shade
      • ShapeInstructions
      • ShapePictureTag
      • ShapeProperty
      • ShapePropertyName
      • ShapePropertyValue
      • ShapeTag
      • SpaceAfter
      • SpaceBefore
      • SpaceBetweenLines
      • StyleRef
      • StyleSheetTag
      • Subject
      • SubscriptStart
      • SuperSubEnd
      • SuperscriptStart
      • Tab
      • TabAlignment
      • TabPosition
      • TableBorderSide
      • TablePaddingBottom
      • TablePaddingLeft
      • TablePaddingRight
      • TablePaddingTop
      • TextAlign
      • TextToken
      • Tint
      • Title
      • TokenType
      • TopCellSpacing
      • UnderlineColor
      • UnderlineDashDot
      • UnderlineDashDotDot
      • UnderlineDashed
      • UnderlineDotted
      • UnderlineDouble
      • UnderlineDoubleWave
      • UnderlineHeavyWave
      • UnderlineLongDash
      • UnderlineThick
      • UnderlineThickDash
      • UnderlineThickDashDot
      • UnderlineThickDashDotDot
      • UnderlineThickDotted
      • UnderlineThickLongDash
      • UnderlineWave
      • UnderlineWord
      • UnicodeTextTag
      • Version
      • WBitmap
      • WmMetafile
      • Year

    Class Parser

    Tokenize an RTF document and create a heirarchical document structure of the groups

    Inheritance
    object
    Parser
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: SharpRtfConvert
    Assembly: SharpRtfConvert.dll
    Syntax
    public class Parser

    Constructors

    | Edit this page View Source

    Parser(Stream)

    Parse RTF from a stream

    Declaration
    public Parser(Stream stream)
    Parameters
    Type Name Description
    Stream stream

    Binary RTF data

    | Edit this page View Source

    Parser(TextReader)

    Parse RTF from a text reader

    Declaration
    public Parser(TextReader reader)
    Parameters
    Type Name Description
    TextReader reader

    RTF

    | Edit this page View Source

    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 Source

    Clamp(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
    | Edit this page View Source

    Parse()

    Build a document structure

    Declaration
    public Document Parse()
    Returns
    Type Description
    Document
    | Edit this page View Source

    Tokens()

    Get a flat list of all the tokens in the RTF document

    Declaration
    public IEnumerable<IToken> Tokens()
    Returns
    Type Description
    IEnumerable<IToken>
    • Edit this page
    • View Source
    In this article
    Back to top Copyright (c) 2018 Eric Domke, 2026 Jérémy Ansel