markEntry

markEntry

ADVANCED / PREMIUM TRIAL

Marks an index entry into the Word document.

Description
public markEntry ( [array $options [, array $styles]] )

This method allows to mark an index entry in the Word document.

This method must be used as WordFragment.

Parameters

options

The possible keys and values are:

Key Type Description
mainEntry string Default as "Entry".
subEntry string
type string
  • cross-reference
  • current-page (default)
  • page-range
seeText string Used in cross-reference entries. Default as 'See'.
bookmark string Required in page-range entries.

$styles

rPr styles. See createCharacterStyle.

Exceptions

Method not available.

Not used as WordFragment.

bookmark required for page-range entries.

Code samples

Example #1

Release notes
  • phpdocx 17.0:
    • new method.