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

    Settings used when converting RTF to HTML

    Inheritance
    object
    HtmlWriterSettings
    RtfHtmlSettings
    Inherited Members
    HtmlWriterSettings.Indent
    HtmlWriterSettings.IndentChars
    HtmlWriterSettings.NewLineChars
    HtmlWriterSettings.NewLineOnAttributes
    HtmlWriterSettings.QuoteChar
    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 RtfHtmlSettings : HtmlWriterSettings

    Constructors

    | Edit this page View Source

    RtfHtmlSettings()

    Create a new RtfHtmlSettings object

    Declaration
    public RtfHtmlSettings()

    Properties

    | Edit this page View Source

    AttachmentRenderer

    Callback used when building the HTML to render an e-mail attachment

    Declaration
    public Action<int, XmlWriter> AttachmentRenderer { get; set; }
    Property Value
    Type Description
    Action<int, XmlWriter>
    | Edit this page View Source

    ElementTags

    Mapping of HTML tags to use for various document element types

    Declaration
    public Dictionary<ElementType, HtmlTag> ElementTags { get; }
    Property Value
    Type Description
    Dictionary<ElementType, HtmlTag>
    | Edit this page View Source

    ImageUriGetter

    Callback used to get the URI for a picture stored in RTF. This could be a data URI that contains the binary data of the picture, or a link to an external file. Return null to omit the image from the output.

    Declaration
    public Func<Picture, string?> ImageUriGetter { get; set; }
    Property Value
    Type Description
    Func<Picture, string>
    | Edit this page View Source

    OnImageSkipped

    Called when an image is omitted from the HTML output because ImageUriGetter returned null. Use this to log or surface unsupported image formats (e.g. EMF, WMF) to callers. The Type and MimeType() identify the format.

    Declaration
    public Action<Picture>? OnImageSkipped { get; set; }
    Property Value
    Type Description
    Action<Picture>

    Methods

    | Edit this page View Source

    WithFullDocument()

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