次の方法で共有


Options.DefaultHighlightColorIndex Property (Word)

Returns or sets the color used to highlight text formatted with the Highlight button (Formatting toolbar). Read/write WdColorIndex.

Syntax

expression .DefaultHighlightColorIndex

expression Required. A variable that represents an Options collection.

Example

This example sets the default highlight color to bright green. The new color doesn't apply to any previously highlighted text.

Options.DefaultHighlightColorIndex = wdBrightGreen

This example returns the current default highlight color index.

Dim lngTemp As Long 
 
lngTemp = Options.DefaultHighlightColorIndex

See Also

Concepts

Options Object Members

Options Object