Instance Method

insertChild(_:at:)

Inserts the specified outline object at the specified index.

Declaration

func insertChild(_ child: PDFOutline, at index: Int)

Discussion

To build a PDF outline hierarchy, use this method to add child outline objects. Before you call this method on a PDFOutline object that already has a parent, you should retain the object and call removeFromParent() on it first.

See Also

Changing an Outline Hierarchy

func removeFromParent()

Removes the outline object from its parent (does nothing if outline object is the root outline object).