Page tree
Skip to end of metadata
Go to start of metadata

Description

The HTMLInsertProperties object is a container for properties that control the behavior of HTMLToWord. You can control how HTMLToWord handles HTML tags that it does not explicitly support, as well as set the default font used when inserting text into the Word document.

C#
vb.net

Remarks

You can not create an HTMLInsertProperties object. You must obtain the existing object from the HTMLToWord object by getting HTMLToWord.InsertProperties.

Properties

Name

Description

AcceptUnknownTags

Controls how unknown tags are handled. If set to false, HTMLToWord will throw an HTMLToWordException if it encounters a tag that it does not explicitly know how to handle. If set to true, HTMLToWord will attempt to process the tag. See the IncludeContentsOfUnknownTags for further user-controlable behavior.

DefaultFont

Specifies the font to use when inserting text. This property is temporarily overridden by the <font> tag in the XHTML. If this property is not set, the document's default font is used.

IncludeContentsOfUnknownTags

Controls how the contents of unsupported tags are handled. If set to true, the contents of unsupported tags are inserted into the document as text. If set to false, the contents of unsupported tags are ignored.
  • No labels