Class PdfLoadedBookmark
Inheritance
System.Object
PdfLoadedBookmark
Implements
System.Collections.IEnumerable
Assembly: Syncfusion.Pdf.UWP.dll
Syntax
public class PdfLoadedBookmark : PdfBookmark, IPdfWrapper, IEnumerable
Properties
Color
Declaration
public override PdfColor Color { get; set; }
Property Value
Overrides
Destination
Declaration
public override PdfDestination Destination { get; set; }
Property Value
Overrides
NamedDestination
Declaration
public override PdfNamedDestination NamedDestination { get; set; }
Property Value
Overrides
TextStyle
Declaration
public override PdfTextStyle TextStyle { get; set; }
Property Value
Overrides
Title
Gets or sets the outline title.
Declaration
public override string Title { get; set; }
Property Value
Type |
Description |
System.String |
The string value which contains title of the bookmark.
|
Overrides
Examples
//Load the PDF document.
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//Get all the bookmarks.
PdfBookmarkBase bookmarks = loadedDocument.Bookmarks;
//Get the first bookmark and set the properties of the bookmark.
PdfLoadedBookmark bookmark = bookmarks[0] as PdfLoadedBookmark;
bookmark.Destination = new PdfDestination(loadedDocument.Pages[1]);
bookmark.Color = Color.Green;
bookmark.TextStyle = PdfTextStyle.Bold;
bookmark.Title = "Changed title";
//Save the document
loadedDocument.Save("Output.pdf");
//Close the document
loadedDocument.Close(true);
'Load the PDF document.
Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
'Get all the bookmarks.
Dim bookmarks As PdfBookmarkBase = document.Bookmarks
'Get the first bookmark and set the properties of the bookmark.
Dim bookmark As PdfLoadedBookmark = TryCast(bookmarks(0), PdfLoadedBookmark)
bookmark.Destination = New PdfDestination(loadedDocument.Pages(1))
bookmark.Color = Color.Green
bookmark.TextStyle = PdfTextStyle.Bold
bookmark.Title = "Changed title"
'Save the document
loadedDocument.Save("Output.pdf")
'Close the document
loadedDocument.Close(True)
See Also
Implements
System.Collections.IEnumerable
Extension Methods