Click or drag to resize

PdfOutlineCollectionAddBefore Method (PdfOutline, PdfOutline)

Adds the specified new PdfOutline before the specified existing PdfOutline in the PdfOutlineCollection.

Namespace:  GemBox.Pdf
Assembly:  GemBox.Pdf (in GemBox.Pdf.dll) Version: 10.0.35.1002
Syntax
public void AddBefore(
	PdfOutline outline,
	PdfOutline newOutline
)

Parameters

outline
Type: GemBox.PdfPdfOutline
The PdfOutline before which to insert newOutline.
newOutline
Type: GemBox.PdfPdfOutline
The new PdfOutline to add to the PdfOutlineCollection.
Exceptions
ExceptionCondition
ArgumentNullExceptionoutline or newOutline is .
InvalidOperationExceptionoutline is not in the current PdfOutlineCollection or newOutline belongs to another PdfOutlineCollection.
See Also