Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Enum

WordHtmlTextBackgroundMode

OfficeIMO.Word.Html

Namespace
OfficeIMO.Word.Html
Assembly
OfficeIMO.Word.Html
Source revision
e163ccb36643 with working tree changes
Base
Enum
Implements
IComparable ISpanFormattable IFormattable IConvertible
Modifiers
sealed

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

Inheritance

  • Enum
  • WordHtmlTextBackgroundMode

Usage

Explore 3 API references to this type

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

Values

public const WordHtmlTextBackgroundMode ExactShading #

Uses native run shading, preserving the exact CSS color.

Value: 0
public const WordHtmlTextBackgroundMode 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