API Reference
Class
PdfBookmarkEditSession
Transactional add/remove/rename/move/nest/retarget/rebuild surface for existing bookmarks.
Inheritance
- Object
- PdfBookmarkEditSession
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
Accepted by parameters
- Method PdfDocumentBookmarks.Edit
Methods
public PdfBookmarkNode Add(String title, Int32 pageNumber, String parentId = null, Nullable<Double> destinationTop = null, Boolean expanded = true) #Returns:
PdfBookmarkNodeAdds a bookmark at the root or below a parent id.
Parameters
- title System.String
- pageNumber System.Int32
- parentId System.String = null
- destinationTop System.Nullable{System.Double} = null
- expanded System.Boolean = true
public PdfBookmarkEditSession Move(String id, String parentId = null, Int32 index = -1) #Returns:
PdfBookmarkEditSessionMoves a bookmark to a root or nested sibling position.
Parameters
- id System.String
- parentId System.String = null
- index System.Int32 = -1
public PdfBookmarkEditSession RebuildFromHeadings() #Returns:
PdfBookmarkEditSessionReplaces bookmarks with the source document's inferred heading hierarchy.
public PdfBookmarkEditSession Remove(String id) #Returns:
PdfBookmarkEditSessionRemoves a bookmark and its descendants.
Parameters
- id System.String
public PdfBookmarkEditSession Rename(String id, String title) #Returns:
PdfBookmarkEditSessionRenames a bookmark.
Parameters
- id System.String
- title System.String
Retarget 2 overloads
public PdfBookmarkEditSession Retarget(String id, Int32 pageNumber, Nullable<Double> destinationTop = null) #Returns:
PdfBookmarkEditSessionRetargets a bookmark to a page and optional top coordinate.
Parameters
- id System.String
- pageNumber System.Int32
- destinationTop System.Nullable{System.Double} = null
public PdfBookmarkEditSession Retarget(String id, Int32 pageNumber, PdfOpenActionDestinationMode destinationMode, Nullable<Double> destinationTop = null, Nullable<Double> destinationLeft = null, Nullable<Double> destinationBottom = null, Nullable<Double> destinationRight = null, Nullable<Double> destinationZoom = null) #Returns:
PdfBookmarkEditSessionRetargets a bookmark using an explicit viewer destination mode and coordinates.
Parameters
- id System.String
- pageNumber System.Int32
- destinationMode OfficeIMO.Pdf.PdfOpenActionDestinationMode
- destinationTop System.Nullable{System.Double} = null
- destinationLeft System.Nullable{System.Double} = null
- destinationBottom System.Nullable{System.Double} = null
- destinationRight System.Nullable{System.Double} = null
- destinationZoom System.Nullable{System.Double} = null
Inherited Methods
Properties
public IReadOnlyList<PdfBookmarkNode> Roots { get; } #Current top-level bookmark nodes.