Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Enum

HtmlTextBackgroundMode

Namespace OfficeIMO.Word.Html
Assembly OfficeIMO.Word.Html
Base Enum
Implements
IComparable ISpanFormattable IFormattable IConvertible
Modifiers sealed

Specifies how CSS background colors on inline text are represented in Word.

Inheritance

  • Enum
  • HtmlTextBackgroundMode

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Values

public const HtmlTextBackgroundMode ExactShading #

Uses native run shading, preserving the exact CSS color.

Value: 0
public const HtmlTextBackgroundMode NearestHighlight #

Uses the nearest color from Word's fixed text-highlight palette. A conversion diagnostic is emitted when the requested color must be approximated.

Value: 1