• Api Documentation
Show / Hide Table of Contents
  • pdftron
    • PDFNet
    • PDFNet.CharacterOrdering
    • PDFNet.CMSType
    • PDFNet.ConnectionErrorHandlingMode
    • PDFNet.ConnectionErrorProcDelegate
  • pdftron.Common
    • ByteRange
    • Matrix2D
    • PDFNetException
    • PDFNetException.ErrorCodes
    • ProgressMonitor
  • pdftron.Crypto
    • AlgorithmIdentifier
    • AlgorithmParams
    • DigestAlgorithm
    • DigestAlgorithm.Type
    • ObjectIdentifier
    • ObjectIdentifier.Predefined
    • RSASSAPSSParams
    • X501AttributeTypeAndValue
    • X501DistinguishedName
    • X509Certificate
    • X509Extension
  • pdftron.FDF
    • FDFDoc
    • FDFField
    • FDFFieldIterator
    • XFDFExportOptions
  • pdftron.Filters
    • ASCII85Encode
    • Filter
    • Filter.ReferencePos
    • FilterReader
    • FilterWriter
    • FlateEncode
    • MappedFile
    • MappedFile.OpenMode
    • MemoryFilter
    • StreamAdapterFilter
  • pdftron.Layout
    • ContentElement
    • ContentNode
    • ContentNodeIterator
    • FlowDocument
    • List
    • List.NumberFormat
    • ListItem
    • Paragraph
    • Paragraph.TextJustification
    • Table
    • TableCell
    • TableCell.CellAlignmentHorizontal
    • TableCell.CellAlignmentVertical
    • TableRow
    • TextRun
    • TextStyledElement
  • pdftron.PDF
    • Action
    • Action.FormActionFlag
    • Action.Type
    • ActionParameter
    • AdvancedImagingConvertOptions
    • AdvancedImagingModule
    • Annot
    • Annot.AnnotationState
    • Annot.BorderStyle
    • Annot.BorderStyle.Style
    • Annot.EventType
    • Annot.Flag
    • Annot.Type
    • Bookmark
    • CADConvertOptions
    • CADConvertOptions.LayoutSortOrder
    • CADModule
    • CancelRequestRenderThread
    • CharData
    • CharIterator
    • CMSSignatureOptions
    • ColorPt
    • ColorSpace
    • ColorSpace.Type
    • ContentReplacer
    • ConversionOptions
    • Convert
    • Convert.EPUBOutputOptions
    • Convert.ExcelOutputOptions
    • Convert.ExcelOutputOptions.SearchableImageSetting
    • Convert.FlattenFlag
    • Convert.FlattenThresholdFlag
    • Convert.HTMLOutputOptions
    • Convert.HTMLOutputOptions.ContentReflowSetting
    • Convert.HTMLOutputOptions.SearchableImageSetting
    • Convert.OutputOptionsOCR
    • Convert.OutputOptionsOCR.LanguageChoice
    • Convert.OutputOptionsOCR.PreferredOCREngine
    • Convert.PowerPointOutputOptions
    • Convert.PowerPointOutputOptions.SearchableImageSetting
    • Convert.Printer
    • Convert.Printer.Mode
    • Convert.SVGOutputOptions
    • Convert.TiffOutputOptions
    • Convert.WordOutputOptions
    • Convert.WordOutputOptions.SearchableImageSetting
    • Convert.WordOutputOptions.WordOutputFormat
    • Convert.WPFConverterOptions
    • Convert.WPFConverterOptions.DrawHeaderFooter
    • Convert.XODOutputOptions
    • Convert.XODOutputOptions.AnnotationOutputFlag
    • Convert.XPSOutputCommonOptions
    • Convert.XPSOutputOptions
    • CubicCurveBuilder
    • DataExtractionModule
    • DataExtractionModule.DataExtractionEngine
    • DataExtractionOptions
    • Date
    • Destination
    • Destination.FitType
    • DiffOptions
    • DigitalSignatureField
    • DigitalSignatureField.DocumentPermissions
    • DigitalSignatureField.FieldPermissions
    • DigitalSignatureField.SubFilterType
    • DigitalSignatureFieldIterator
    • DisallowedChange
    • DisallowedChange.Type
    • DocumentConversion
    • DocumentConversionResult
    • DownloadedType
    • Element
    • Element.Type
    • ElementBuilder
    • ElementReader
    • ElementWriter
    • ElementWriter.WriteMode
    • EmbeddedTimestampVerificationResult
    • Field
    • Field.EventType
    • Field.Flag
    • Field.TextJustification
    • Field.Type
    • FieldIterator
    • FileSpec
    • Flattener
    • Flattener.FlattenMode
    • Flattener.Threshold
    • Font
    • Font.Encoding
    • Font.StandardType1Font
    • Font.Type
    • FontCharCodeIterator
    • Function
    • Function.Type
    • GeometryCollection
    • GeometryCollectionSnappingMode
    • GSChangesIterator
    • GState
    • GState.BlendMode
    • GState.GStateAttribute
    • GState.LineCap
    • GState.LineJoin
    • GState.RenderingIntent
    • GState.TextRenderingMode
    • Highlights
    • HTML2PDF
    • HTML2PDF.Proxy
    • HTML2PDF.Proxy.Type
    • HTML2PDF.TOCSettings
    • HTML2PDF.WebPageSettings
    • HTML2PDF.WebPageSettings.ErrorHandling
    • HTTPRequestOptions
    • Image
    • Image.InputFilter
    • Image2RGB
    • KeyStrokeActionResult
    • KeyStrokeEventData
    • MergeXFDFOptions
    • OCRModule
    • OCROptions
    • OfficeToPDFOptions
    • OfficeToPDFOptions.StructureTagLevel
    • Optimizer
    • Optimizer.ImageSettings
    • Optimizer.ImageSettings.CompressionMode
    • Optimizer.ImageSettings.DownsampleMode
    • Optimizer.MonoImageSettings
    • Optimizer.MonoImageSettings.CompressionMode
    • Optimizer.MonoImageSettings.DownsampleMode
    • Optimizer.OptimizerSettings
    • Optimizer.TextSettings
    • OptionsBase
    • Page
    • Page.Box
    • Page.EventType
    • Page.Rotate
    • PageIterator
    • PageLabel
    • PageLabel.Style
    • PageSet
    • PageSet.Filter
    • PathData
    • PathData.PathSegmentType
    • PatternColor
    • PatternColor.TilingType
    • PatternColor.Type
    • PDF2HtmlReflowParagraphsModule
    • PDF2WordModule
    • PDFDC
    • PDFDCEX
    • PDFDoc
    • PDFDoc.EventType
    • PDFDoc.ExtractFlag
    • PDFDoc.InsertFlag
    • PDFDoc.SignaturesVerificationStatus
    • PDFDocInfo
    • PDFDocViewPrefs
    • PDFDocViewPrefs.PageLayout
    • PDFDocViewPrefs.PageMode
    • PDFDocViewPrefs.ViewerPref
    • PDFDraw
    • PDFNetInternalTools
    • PDFNetInternalToolsLogBackend
    • PDFNetInternalToolsLogLevel
    • PDFRasterizer
    • PDFRasterizer.ColorPostProcessMode
    • PDFRasterizer.OverprintPreviewMode
    • PDFRasterizer.Type
    • PDFViewAnnotationEditPermissionDelegate
    • PDFViewCtrl
    • PDFViewCtrl.LinkInfo
    • PDFViewCtrl.PagePresentationMode
    • PDFViewCtrl.PageViewMode
    • PDFViewCtrl.PanelType
    • PDFViewCtrl.PDFViewCtrlWindowType
    • PDFViewCtrl.PDFViewFindTextAsyncDelegate
    • PDFViewCtrl.PDFViewRenderWorkerDelegate
    • PDFViewCtrl.Selection
    • PDFViewCtrl.TextSelectionMode
    • PDFViewCtrl.ToolMode
    • PDFViewCurrentPageDelegate
    • PDFViewDownloadDelegate
    • PDFViewErrorDelegate
    • PDFViewThumbAsyncDelegate
    • PDFViewWPF
    • PDFViewWPF.ActionEventArgs
    • PDFViewWPF.CurrentPageNumberChangedHandler
    • PDFViewWPF.CurrentScrollChangedHandler
    • PDFViewWPF.CurrentZoomChangedHandler
    • PDFViewWPF.FindTextFinsihedHandler
    • PDFViewWPF.LayoutChangedHandler
    • PDFViewWPF.LinkInfo
    • PDFViewWPF.OnActionEventHandler
    • PDFViewWPF.OnConversionEventHandler
    • PDFViewWPF.OnRenderFinishedEventHandler
    • PDFViewWPF.OnSetdocHandler
    • PDFViewWPF.OnThumbnailGeneratedEventHandler
    • PDFViewWPF.OverprintPreviewMode
    • PDFViewWPF.PagePresentationMode
    • PDFViewWPF.PageViewMode
    • PDFViewWPF.PDFViewWPFConversionType
    • PDFViewWPF.Selection
    • PDFViewWPF.TextSelectionMode
    • Point
    • Print
    • PrinterMode
    • PrinterMode.DuplexMode
    • PrinterMode.NUp
    • PrinterMode.NUpPageOrder
    • PrinterMode.Orientation
    • PrinterMode.OutputColor
    • PrinterMode.OutputQuality
    • PrinterMode.PaperSize
    • PrinterMode.PrintContentTypes
    • PrinterMode.ScaleType
    • PrintToPdfModule
    • PrintToPdfOptions
    • QuadPoint
    • Rect
    • RectCollection
    • Redactor
    • Redactor.Appearance
    • Redactor.Redaction
    • Reflow
    • RefreshOptions
    • Separation
    • Shading
    • Shading.Type
    • ShapedText
    • ShapedText.FailureReason
    • ShapedText.ShapingStatus
    • Stamper
    • Stamper.HorizontalAlignment
    • Stamper.SizeType
    • Stamper.TextAlignment
    • Stamper.VerticalAlignment
    • StructuredOutputModule
    • SVGConvertOptions
    • SVGParser
    • TemplateDocument
    • TemplateDocumentResult
    • TextDiffOptions
    • TextExtractor
    • TextExtractor.CharRange
    • TextExtractor.Line
    • TextExtractor.ProcessingFlags
    • TextExtractor.Style
    • TextExtractor.Word
    • TextExtractor.XMLOutputFlags
    • TextRange
    • TextSearch
    • TextSearch.ResultCode
    • TextSearch.SearchMode
    • TileInTransit
    • TimestampingConfiguration
    • TimestampingResult
    • TrustVerificationResult
    • VerificationOptions
    • VerificationOptions.CertificateTrustFlag
    • VerificationOptions.SignatureVerificationSecurityLevel
    • VerificationOptions.TimeMode
    • VerificationResult
    • VerificationResult.DigestStatus
    • VerificationResult.DocumentStatus
    • VerificationResult.ModificationPermissionsStatus
    • VerificationResult.TrustStatus
    • ViewChangeCollection
    • ViewerOptimizedOptions
    • WordToPDFOptions
  • pdftron.PDF.Annots
    • Caret
    • CheckBoxWidget
    • Circle
    • ComboBoxWidget
    • FileAttachment
    • FileAttachment.Icon
    • FreeText
    • FreeText.IntentName
    • Highlight
    • Ink
    • Line
    • Line.CapPos
    • Line.EndingStyle
    • Line.IntentType
    • Link
    • Link.HighlightingMode
    • ListBoxWidget
    • Markup
    • Markup.BorderEffect
    • Movie
    • Polygon
    • PolyLine
    • PolyLine.IntentType
    • Popup
    • PushButtonWidget
    • RadioButtonGroup
    • RadioButtonWidget
    • Redaction
    • Redaction.QuadForm
    • RubberStamp
    • RubberStamp.Icon
    • Screen
    • Screen.IconCaptionRelation
    • Screen.ScaleCondition
    • Screen.ScaleType
    • SignatureWidget
    • Sound
    • Sound.Icon
    • Square
    • Squiggly
    • StrikeOut
    • Text
    • Text.Icon
    • TextMarkup
    • TextWidget
    • Underline
    • Watermark
    • Widget
    • Widget.HighlightingMode
    • Widget.IconCaptionRelation
    • Widget.ScaleCondition
    • Widget.ScaleType
  • pdftron.PDF.Details
    • AnnotManager
    • AnnotTile
    • BlendEffect
  • pdftron.PDF.OCG
    • Config
    • Context
    • Context.OCDrawMode
    • Group
    • OCMD
    • OCMD.VisibilityPolicyType
  • pdftron.PDF.PDFA
    • PDFACompliance
    • PDFACompliance.Conformance
    • PDFACompliance.ErrorCode
    • PDFAOptions
  • pdftron.PDF.Struct
    • ContentItem
    • ContentItem.Type
    • SElement
    • STree
  • pdftron.SDF
    • CreateDelegate
    • DictIterator
    • DocSnapshot
    • NameTree
    • NameTreeIterator
    • NumberTreeIterator
    • Obj
    • Obj.ObjType
    • ObjSet
    • PDFTronCustomSecurityHandler
    • ResultSnapshot
    • SDFDoc
    • SDFDoc.SaveOptions
    • SecurityDescriptor
    • SecurityHandler
    • SecurityHandler.Permission
    • SecurityManager
    • SecurityManagerSingleton
    • SignatureHandler
    • SignatureHandlerId
    • StdSecurityHandler
    • StdSecurityHandler.AlgorithmType
    • UndoManager

Class Bookmark

Adds/links the specified Bookmark to the root level of document's outline tree.

Inheritance
object
Bookmark
Implements
IDisposable
Inherited Members
object.ToString()
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: pdftron.PDF
Assembly: PDFNet.dll
Syntax
public class Bookmark : IDisposable
Remarks

parameter 'root_bookmark' must not be linked (must not be belong) to a bookmark tree.

Constructors

Bookmark(Obj)

A constructor. Creates a bookmark from specified SDF::Obj

Declaration
public Bookmark(Obj b)
Parameters
Type Name Description
Obj b

SDF::Obj object

Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

Methods

AddChild(string)

Adds a new Bookmark as the new last child of this Bookmark.

Declaration
public Bookmark AddChild(string text)
Parameters
Type Name Description
string text

The title string value of the new Bookmark.

Returns
Type Description
Bookmark

The newly created child Bookmark.

Remarks

If this Bookmark previously had no children, it will be open after the child is added.

Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

AddChild(Bookmark)

Adds the specified Bookmark as the new last child of this Bookmark.

Declaration
public void AddChild(Bookmark bookmark)
Parameters
Type Name Description
Bookmark bookmark

The Bookmark object to be added as a last child of this Bookmark.

Remarks

Parameter in_bookmark must not be linked to a bookmark tree. If this Bookmark previously had no children, it will be open after the child is added.

Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

AddNext(string)

Adds a new Bookmark to the tree containing this Bookmark, as the new right sibling.

Declaration
public Bookmark AddNext(string text)
Parameters
Type Name Description
string text

The title string value of the new Bookmark.

Returns
Type Description
Bookmark

The newly created sibling Bookmark.

Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

AddNext(Bookmark)

Adds the specified Bookmark as the new right sibling to this Bookmark, adjusting the tree containing this Bookmark appropriately.

Declaration
public void AddNext(Bookmark bookmark)
Parameters
Type Name Description
Bookmark bookmark

The Bookmark object to be added to this Bookmark.

Remarks

Parameter in_bookmark must not be linked to a bookmark tree.

Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

AddPrev(string)

Adds a new Bookmark to the tree containing this Bookmark, as the new left sibling.

Declaration
public Bookmark AddPrev(string text)
Parameters
Type Name Description
string text

The title string value of the new Bookmark.

Returns
Type Description
Bookmark

The newly created sibling Bookmark.

Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

AddPrev(Bookmark)

Adds the specified Bookmark as the new left sibling to this Bookmark, adjusting the tree containing this Bookmark appropriately.

Declaration
public void AddPrev(Bookmark bookmark)
Parameters
Type Name Description
Bookmark bookmark

The Bookmark object to be added to this Bookmark.

Remarks

Parameter in_bookmark must not be linked to a bookmark tree.

Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

Create(PDFDoc, string)

Creates a new valid Bookmark with given title in the specified document.

Declaration
public static Bookmark Create(PDFDoc doc, string text)
Parameters
Type Name Description
PDFDoc doc

The document in which a Bookmark is to be created.

string text

The title string value of the new Bookmark.

Returns
Type Description
Bookmark

The new Bookmark.

Remarks

The new Bookmark is not linked to the outline tree. Use AddChild()/AddNext()/AddPrev() methods in order to link the Bookmark to the outline tree

Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

Delete()

Removes the Bookmark's subtree from the bookmark tree containing it.

Declaration
public void Delete()
Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

Dispose()

Releases all resources used by the Bookmark

Declaration
public override sealed void Dispose()
Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

Dispose(bool)

Declaration
[HandleProcessCorruptedStateExceptions]
protected virtual void Dispose(bool A_0)
Parameters
Type Name Description
bool A_0
Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

Equals(object)

Check whether the given object is the equal to this Bookmark object

Declaration
public override bool Equals(object o)
Parameters
Type Name Description
object o

a given Object

Returns
Type Description
bool

true, if equals to the given object

Overrides
object.Equals(object)
Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

~Bookmark()

Declaration
protected ~Bookmark()
Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

Find(string)

Gets the Bookmark specified by the given title string.

Declaration
public Bookmark Find(string title)
Parameters
Type Name Description
string title

The title string value of the Bookmark to find.

Returns
Type Description
Bookmark

A Bookmark matching the title string value specified.

Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

GetAction()

Gets the Bookmark's action.

Declaration
public Action GetAction()
Returns
Type Description
Action

The bookmark's action.

Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

GetColor(ref double, ref double, ref double)

Gets the Bookmark's RGB color value.

Declaration
public void GetColor(ref double out_r, ref double out_g, ref double out_b)
Parameters
Type Name Description
double out_r

red component in the DeviceRGB color space

double out_g

green component in the DeviceRGB color space

double out_b

blue component in the DeviceRGB color space

Examples

The three numbers out_r, out_g, and out_b are in the range 0.0 to 1.0, representing the components in the DeviceRGB color space of the color to be used for the Bookmark's text.

double red, green, blue;
bookmark.GetColor(red, green, blue);
Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

GetFirstChild()

Returns the Bookmark's first child.

Declaration
public Bookmark GetFirstChild()
Returns
Type Description
Bookmark

The Bookmark's first child.

Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

GetFlags()

Gets the Bookmark's flags.

Declaration
public int GetFlags()
Returns
Type Description
int

The flags of the Bookmark object. Bit 1 (least-significant bit) indicates italic font whereas bit 2 indicates bold font. Therefore, 0 indicates normal, 1 is italic, 2 is bold, and 3 is bold-italic.

Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

GetIndent()

Gets the indentation level of the Bookmark in its containing tree.

Declaration
public int GetIndent()
Returns
Type Description
int

The indentation level of the Bookmark in its containing tree.

Remarks

The root level has an indentation level of zero.

Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

GetLastChild()

Returns the Bookmark's last child.

Declaration
public Bookmark GetLastChild()
Returns
Type Description
Bookmark

The Bookmark's last child.

Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

GetNext()

Returns the Bookmark's next (right) sibling.

Declaration
public Bookmark GetNext()
Returns
Type Description
Bookmark

The Bookmark's next (right) sibling.

Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

GetOpenCount()

Gets the number of opened bookmarks in this subtree.

Declaration
public int GetOpenCount()
Returns
Type Description
int

The number of opened bookmarks in this subtree (not including this Bookmark). If the item is closed, a negative integer whose absolute value specifies how many descendants would appear if the item were reopened.

Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

GetParent()

Returns the Bookmark's parent Bookmark.

Declaration
public Bookmark GetParent()
Returns
Type Description
Bookmark

The Bookmark's parent Bookmark.

Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

GetPrev()

Returns the Bookmark's previous (left) sibling.

Declaration
public Bookmark GetPrev()
Returns
Type Description
Bookmark

The Bookmark's previous (left) sibling.

Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

GetSDFObj()

Returns the underlying SDF/Cos object.

Declaration
public Obj GetSDFObj()
Returns
Type Description
Obj

The underlying SDF/Cos object.

Remarks

A null (non-valid) bookmark returns a null object.

Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

GetTitle()

Gets the Bookmark's title string.

Declaration
public string GetTitle()
Returns
Type Description
string

The Bookmark's title string).

Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

GetTitleObj()

Gets the Bookmark's title string object.

Declaration
public Obj GetTitleObj()
Returns
Type Description
Obj

The Bookmark's title string object.

Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

HasChildren()

Indicates whether the Bookmark has children.

Declaration
public bool HasChildren()
Returns
Type Description
bool

True if the Bookmark has children; otherwise false.

Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

IsOpen()

Indicates whether the Bookmark is open.

Declaration
public bool IsOpen()
Returns
Type Description
bool

True if this Bookmark is open; otherwise false.

Remarks

An open Bookmark shows all its children.

Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

IsValid()

Indicates whether the Bookmark is valid (non-null).

Declaration
public bool IsValid()
Returns
Type Description
bool

True if this is a valid (non-null) Bookmark; otherwise false.

Remarks

If this method returns false the underlying SDF/Cos object is null and the Bookmark object should be treated as null as well.

Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

RemoveAction()

Removes the Bookmark's action.

Declaration
public void RemoveAction()
Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

Set(Bookmark)

Sets value to the specified Bookmark

Declaration
public void Set(Bookmark p)
Parameters
Type Name Description
Bookmark p

given Bookmark object

Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

SetAction(Action)

Sets the Bookmark's action.

Declaration
public void SetAction(Action action)
Parameters
Type Name Description
Action action

The new Action for the Bookmark.

Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

SetColor(double, double, double)

Sets the color.

Declaration
public void SetColor(double r, double g, double b)
Parameters
Type Name Description
double r

red component in the DeviceRGB color space

double g

green component in the DeviceRGB color space

double b

blue component in the DeviceRGB color space

Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

SetFlags(int)

Sets the Bookmark's flags.

Declaration
public void SetFlags(int flags)
Parameters
Type Name Description
int flags

The new bookmark flags. Bit 1 (the least-significant bit) indicates italic font whereas bit 2 indicates bold font. Therefore, 0 indicates normal, 1 is italic, 2 is bold, and 3 is bold-italic.

Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

SetOpen(bool)

Opens or closes the Bookmark.

Declaration
public void SetOpen(bool is_open)
Parameters
Type Name Description
bool is_open

If true, the Bookmark is opened. Otherwise the Bookmark is closed.

Remarks

An opened Bookmark shows its children, while a closed Bookmark does not.

Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

SetTitle(string)

Sets the Bookmark's title string.

Declaration
public void SetTitle(string title)
Parameters
Type Name Description
string title

The new title string for the bookmark.

Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

Unlink()

Unlinks this Bookmark from the bookmark tree that contains it, and adjusts the tree appropriately.

Declaration
public void Unlink()
Remarks

After the bookmark is unlinked is can be moved to another place in the bookmark tree located in the same document.

Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

op_Assign(Bookmark)

Assignment Operator

Declaration
public Bookmark op_Assign(Bookmark r)
Parameters
Type Name Description
Bookmark r

a Bookmark object

Returns
Type Description
Bookmark

A Bookmark object equals to the specified Bookmark object

Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

Operators

operator ==(Bookmark, Bookmark)

Euqality operator checks whether two Bookmark objects are equal

Declaration
public static bool operator ==(Bookmark l, Bookmark r)
Parameters
Type Name Description
Bookmark l

Bookmark object at the left of the operator

Bookmark r

Bookmark object at the right of the operator

Returns
Type Description
bool

true, if both Bookmark objects are equal, false otherwise.

Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

operator !=(Bookmark, Bookmark)

Ineuqality operator checks whether two Bookmark objects are different

Declaration
public static bool operator !=(Bookmark l, Bookmark r)
Parameters
Type Name Description
Bookmark l

Bookmark object at the left of the operator

Bookmark r

Bookmark object at the right of the operator

Returns
Type Description
bool

true, if both Bookmark objects are not equal, false otherwise

Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

Implements

IDisposable
In This Article
Back to top Generated by DocFX