• 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 RtfSource

    Represents a source of RTF content. It auto-converts from either a string, TextReader, or Stream. Using a Stream is preferred as an RTF file can switch binary encodings in the middle of a file

    Inheritance
    object
    RtfSource
    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 RtfSource

    Constructors

    | Edit this page View Source

    RtfSource(TextReader)

    Create an RTF source from a reader

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

    The TextReader to use

    Properties

    | Edit this page View Source

    Reader

    A reader used to read text from the source

    Declaration
    public TextReader Reader { get; }
    Property Value
    Type Description
    TextReader

    Operators

    | Edit this page View Source

    implicit operator RtfSource(Stream)

    Implicitly convert a Stream containing RTF content to an RtfSource

    Declaration
    public static implicit operator RtfSource(Stream value)
    Parameters
    Type Name Description
    Stream value

    RTF content

    Returns
    Type Description
    RtfSource
    | Edit this page View Source

    implicit operator RtfSource(TextReader)

    Implicitly convert a TextReader containing RTF content to an RtfSource

    Declaration
    public static implicit operator RtfSource(TextReader value)
    Parameters
    Type Name Description
    TextReader value

    RTF content

    Returns
    Type Description
    RtfSource
    | Edit this page View Source

    implicit operator RtfSource(string)

    Implicitly convert strings containing RTF content to an RtfSource

    Declaration
    public static implicit operator RtfSource(string value)
    Parameters
    Type Name Description
    string value

    RTF content

    Returns
    Type Description
    RtfSource
    • Edit this page
    • View Source
    In this article
    Back to top Copyright (c) 2018 Eric Domke, 2026 Jérémy Ansel