Method CreateOutlineEntry
CreateOutlineEntry(Twips, Twips, int, string)
Creates an entry of the document outline at a position on the page.
public static LinkRegion CreateOutlineEntry(Twips x, Twips y, int level, string title)
Parameters
xTwipsLeft coordinate in twips.
yTwipsTop coordinate in twips: where following the entry goes.
levelintThe entry's level, 0 for the top level; deeper levels nest under the last shallower entry.
titlestringThe entry's title.
Returns
- LinkRegion
A region of kind OutlineEntry, with no area.
Remarks
Target is set to the encoding outline entries carried before LinkRegionKind existed, so that a renderer written against it still finds the entry.
Exceptions
- ArgumentNullException
titleis null.- ArgumentOutOfRangeException
levelis negative.