Click or drag to resize

PdfOutlineCollectionAddBefore Method (PdfOutline, String)

Adds a new PdfOutline with the specified title before the specified existing PdfOutline in the PdfOutlineCollection.

Namespace:  GemBox.Pdf
Assembly:  GemBox.Pdf (in GemBox.Pdf.dll) Version: 13.0.35.1000
Syntax
public PdfOutline AddBefore(
	PdfOutline outline,
	string title
)

Parameters

outline
Type: GemBox.PdfPdfOutline
The PdfOutline before which to insert a new PdfOutline with the specified title.
title
Type: SystemString
The title of a new PdfOutline added to the PdfOutlineCollection.

Return Value

Type: PdfOutline
The new PdfOutline with the specified title.
Exceptions
ExceptionCondition
ArgumentNullExceptionoutline or title is .
InvalidOperationExceptionoutline is not in the current PdfOutlineCollection.
See Also