Class PdfLoadedBookmark
Implements
System.Collections.IEnumerable
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Syncfusion.Pdf.Interactive
Assembly: Syncfusion.Pdf.Base.dll
Syntax
public class PdfLoadedBookmark : PdfBookmark, IPdfWrapper, IEnumerable
Properties
Color
Declaration
public override PdfColor Color { get; set; }
Property Value
Type | Description |
---|---|
PdfColor |
Overrides
Destination
Declaration
public override PdfDestination Destination { get; set; }
Property Value
Type | Description |
---|---|
PdfDestination |
Overrides
NamedDestination
Declaration
public override PdfNamedDestination NamedDestination { get; set; }
Property Value
Type | Description |
---|---|
PdfNamedDestination |
Overrides
TextStyle
Declaration
public override PdfTextStyle TextStyle { get; set; }
Property Value
Type | Description |
---|---|
PdfTextStyle |
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
Remarks
The outline title is the text, which appears in the outline tree as a tree node.
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