Represents a bookmark. More...

#include "Bookmark.h"

Inherits System::Object.

Public Member Functions

ASPOSE_PDF_SHARED_API System::String get_Action () const
 Gets the action bound with the bookmark. If PageNumber is presented the action can not be specified. The action type includes: "GoTo", "GoToR", "Launch", "Named". More...
 
ASPOSE_PDF_SHARED_API void set_Action (System::String value)
 Sets the action bound with the bookmark. If PageNumber is presented the action can not be specified. The action type includes: "GoTo", "GoToR", "Launch", "Named". More...
 
ASPOSE_PDF_SHARED_API bool get_BoldFlag () const
 Gets the bold flag of bookmark's title. More...
 
ASPOSE_PDF_SHARED_API void set_BoldFlag (bool value)
 Sets the bold flag of bookmark's title. More...
 
ASPOSE_PDF_SHARED_API System::SharedPtr< Bookmarksget_ChildItem ()
 Gets bookmark's children. More...
 
ASPOSE_PDF_SHARED_API void set_ChildItem (System::SharedPtr< Bookmarks > value)
 Sets bookmark's children. More...
 
ASPOSE_PDF_SHARED_API System::SharedPtr< Bookmarksget_ChildItems () const
 Gets bookmark's children. More...
 
ASPOSE_PDF_SHARED_API void set_ChildItems (System::SharedPtr< Bookmarks > value)
 Sets bookmark's children. More...
 
ASPOSE_PDF_SHARED_API System::String get_Destination () const
 Gets bookmark's destination page. Required if action is set as string.Empty. More...
 
ASPOSE_PDF_SHARED_API void set_Destination (System::String value)
 Sets bookmark's destination page. Required if action is set as string.Empty. More...
 
ASPOSE_PDF_SHARED_API bool get_ItalicFlag () const
 Gets the italic flag of bookmark's title. More...
 
ASPOSE_PDF_SHARED_API void set_ItalicFlag (bool value)
 Sets the italic flag of bookmark's title. More...
 
ASPOSE_PDF_SHARED_API int32_t get_Level () const
 Gets bookmark's hierarchy level. More...
 
ASPOSE_PDF_SHARED_API void set_Level (int32_t value)
 Sets bookmark's hierarchy level. More...
 
ASPOSE_PDF_SHARED_API System::String get_PageDisplay () const
 Gets the type of display bookmark's destination page. More...
 
ASPOSE_PDF_SHARED_API void set_PageDisplay (System::String value)
 Sets the type of display bookmark's destination page. More...
 
ASPOSE_PDF_SHARED_API int32_t get_PageDisplay_Bottom () const
 Gets the bottom coordinate of page display. More...
 
ASPOSE_PDF_SHARED_API void set_PageDisplay_Bottom (int32_t value)
 Sets the bottom coordinate of page display. More...
 
ASPOSE_PDF_SHARED_API int32_t get_PageDisplay_Left () const
 Gets the left coordinate of page display. More...
 
ASPOSE_PDF_SHARED_API void set_PageDisplay_Left (int32_t value)
 Sets the left coordinate of page display. More...
 
ASPOSE_PDF_SHARED_API int32_t get_PageDisplay_Right () const
 Gets the right coordinate of page display. More...
 
ASPOSE_PDF_SHARED_API void set_PageDisplay_Right (int32_t value)
 Sets the right coordinate of page display. More...
 
ASPOSE_PDF_SHARED_API int32_t get_PageDisplay_Top () const
 Gets the top coordinate of page display. More...
 
ASPOSE_PDF_SHARED_API void set_PageDisplay_Top (int32_t value)
 Sets the top coordinate of page display. More...
 
ASPOSE_PDF_SHARED_API int32_t get_PageDisplay_Zoom () const
 Gets the zoom factor of page display. More...
 
ASPOSE_PDF_SHARED_API void set_PageDisplay_Zoom (int32_t value)
 Sets the zoom factor of page display. More...
 
ASPOSE_PDF_SHARED_API int32_t get_PageNumber () const
 Gets the number of bookmark's destination page. More...
 
ASPOSE_PDF_SHARED_API void set_PageNumber (int32_t value)
 Sets the number of bookmark's destination page. More...
 
ASPOSE_PDF_SHARED_API System::String get_RemoteFile () const
 Gets the file (path) which is required for "GoToR" action of bookmark. More...
 
ASPOSE_PDF_SHARED_API void set_RemoteFile (System::String value)
 Sets the file (path) which is required for "GoToR" action of bookmark. More...
 
ASPOSE_PDF_SHARED_API System::String get_Title () const
 Gets bookmark's title. More...
 
ASPOSE_PDF_SHARED_API void set_Title (System::String value)
 Sets bookmark's title. More...
 
ASPOSE_PDF_SHARED_API System::Drawing::Color get_TitleColor () const
 Gets the color of bookmark's title. More...
 
ASPOSE_PDF_SHARED_API void set_TitleColor (System::Drawing::Color value)
 Sets the color of bookmark's title. More...
 
ASPOSE_PDF_SHARED_API bool get_Open () const
 Gets bookmark state (open, close). More...
 
ASPOSE_PDF_SHARED_API void set_Open (bool value)
 Sets bookmark state (open, close). More...
 
ASPOSE_PDF_SHARED_API Bookmark ()
 Initializes a new instance of the Bookmark class. More...
 
ASPOSE_PDF_SHARED_API int32_t CompareTo (const System::SharedPtr< Bookmark > &value)
 
- Public Member Functions inherited from System::Object
ASPOSECPP_SHARED_API Object ()
 Creates object. Initializes all internal data structures. More...
 
virtual ASPOSECPP_SHARED_API ~Object ()
 Destroys object. Frees all internal data structures. More...
 
ASPOSECPP_SHARED_API Object (Object const &x)
 Copy constructor. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
Objectoperator= (Object const &x)
 Assignment operator. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
ObjectSharedRefAdded ()
 Increments shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int SharedRefRemovedSafe ()
 Decrements and returns shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int RemovedSharedRefs (int count)
 Decreases shared reference count by specified value. More...
 
Detail::SmartPtrCounter * WeakRefAdded ()
 Increments weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
void WeakRefRemoved ()
 Decrements weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
Detail::SmartPtrCounter * GetCounter ()
 Gets reference counter data structure associated with the object. More...
 
int SharedCount () const
 Gets current value of shared reference counter. More...
 
ASPOSECPP_SHARED_API void Lock ()
 Implements C# lock() statement locking. Call directly or use LockContext sentry object. More...
 
ASPOSECPP_SHARED_API void Unlock ()
 Implements C# lock() statement unlocking. Call directly or use LockContext sentry object. More...
 
virtual ASPOSECPP_SHARED_API bool Equals (ptr obj)
 Compares objects using C# Object.Equals semantics. More...
 
virtual ASPOSECPP_SHARED_API int32_t GetHashCode () const
 Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More...
 
virtual ASPOSECPP_SHARED_API String ToString () const
 Analog of C# Object.ToString() method. Enables converting custom objects to string. More...
 
virtual ASPOSECPP_SHARED_API ptr MemberwiseClone () const
 Analog of C# Object.MemberwiseClone() method. Enables cloning custom types. More...
 
virtual ASPOSECPP_SHARED_API const TypeInfoGetType () const
 Gets actual type of object. Analog of C# System.Object.GetType() call. More...
 
virtual ASPOSECPP_SHARED_API bool Is (const TypeInfo &targetType) const
 Check if object represents an instance of type described by targetType. Analog of C# 'is' operator. More...
 
virtual ASPOSECPP_SHARED_API void SetTemplateWeakPtr (uint32_t argument)
 Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More...
 
virtual ASPOSECPP_SHARED_API bool FastCast (const Details::FastRttiBase &helper, void **out_ptr) const
 For internal purposes only. More...
 
template<>
bool Equals (float const &objA, float const &objB)
 Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN. More...
 
template<>
bool Equals (double const &objA, double const &objB)
 Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN. More...
 
template<>
bool ReferenceEquals (String const &str, std::nullptr_t)
 Specialization of Object::ReferenceEquals for case of string and nullptr. More...
 
template<>
bool ReferenceEquals (String const &str1, String const &str2)
 Specialization of Object::ReferenceEquals for case of strings. More...
 

Protected Member Functions

System::SharedPtr< OutlineItemCollectionToOutlineItemCollection (System::SharedPtr< Document > doc)
 

Static Protected Member Functions

static System::SharedPtr< BookmarkCreate (System::SharedPtr< OutlineItemCollection > item)
 

Additional Inherited Members

- Public Types inherited from System::Object
typedef SmartPtr< Objectptr
 Alias for smart pointer type. More...
 
- Static Public Member Functions inherited from System::Object
static bool ReferenceEquals (ptr const &objA, ptr const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, T const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, std::nullptr_t)
 Reference-compares value type object with nullptr. More...
 
template<typename T1 , typename T2 >
static std::enable_if< IsSmartPtr< T1 >::value &&IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares reference type objects in C# style. More...
 
template<typename T1 , typename T2 >
static std::enable_if<!IsSmartPtr< T1 >::value &&!IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares value type objects in C# style. More...
 
static const TypeInfoType ()
 Implements C# typeof(System.Object) construct. More...
 

Detailed Description

Represents a bookmark.

Constructor & Destructor Documentation

◆ Bookmark()

ASPOSE_PDF_SHARED_API Aspose::Pdf::Facades::Bookmark::Bookmark ( )

Initializes a new instance of the Bookmark class.

Member Function Documentation

◆ CompareTo()

ASPOSE_PDF_SHARED_API int32_t Aspose::Pdf::Facades::Bookmark::CompareTo ( const System::SharedPtr< Bookmark > &  value)

◆ Create()

static System::SharedPtr<Bookmark> Aspose::Pdf::Facades::Bookmark::Create ( System::SharedPtr< OutlineItemCollection item)
staticprotected

◆ get_Action()

ASPOSE_PDF_SHARED_API System::String Aspose::Pdf::Facades::Bookmark::get_Action ( ) const

Gets the action bound with the bookmark. If PageNumber is presented the action can not be specified. The action type includes: "GoTo", "GoToR", "Launch", "Named".

◆ get_BoldFlag()

ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Facades::Bookmark::get_BoldFlag ( ) const

Gets the bold flag of bookmark's title.

◆ get_ChildItem()

ASPOSE_PDF_SHARED_API System::SharedPtr<Bookmarks> Aspose::Pdf::Facades::Bookmark::get_ChildItem ( )

Gets bookmark's children.

Deprecated:
Use ChildItems property instead of this one.

◆ get_ChildItems()

ASPOSE_PDF_SHARED_API System::SharedPtr<Bookmarks> Aspose::Pdf::Facades::Bookmark::get_ChildItems ( ) const

Gets bookmark's children.

◆ get_Destination()

ASPOSE_PDF_SHARED_API System::String Aspose::Pdf::Facades::Bookmark::get_Destination ( ) const

Gets bookmark's destination page. Required if action is set as string.Empty.

◆ get_ItalicFlag()

ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Facades::Bookmark::get_ItalicFlag ( ) const

Gets the italic flag of bookmark's title.

◆ get_Level()

ASPOSE_PDF_SHARED_API int32_t Aspose::Pdf::Facades::Bookmark::get_Level ( ) const

Gets bookmark's hierarchy level.

◆ get_Open()

ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Facades::Bookmark::get_Open ( ) const

Gets bookmark state (open, close).

◆ get_PageDisplay()

ASPOSE_PDF_SHARED_API System::String Aspose::Pdf::Facades::Bookmark::get_PageDisplay ( ) const

Gets the type of display bookmark's destination page.

◆ get_PageDisplay_Bottom()

ASPOSE_PDF_SHARED_API int32_t Aspose::Pdf::Facades::Bookmark::get_PageDisplay_Bottom ( ) const

Gets the bottom coordinate of page display.

◆ get_PageDisplay_Left()

ASPOSE_PDF_SHARED_API int32_t Aspose::Pdf::Facades::Bookmark::get_PageDisplay_Left ( ) const

Gets the left coordinate of page display.

◆ get_PageDisplay_Right()

ASPOSE_PDF_SHARED_API int32_t Aspose::Pdf::Facades::Bookmark::get_PageDisplay_Right ( ) const

Gets the right coordinate of page display.

◆ get_PageDisplay_Top()

ASPOSE_PDF_SHARED_API int32_t Aspose::Pdf::Facades::Bookmark::get_PageDisplay_Top ( ) const

Gets the top coordinate of page display.

◆ get_PageDisplay_Zoom()

ASPOSE_PDF_SHARED_API int32_t Aspose::Pdf::Facades::Bookmark::get_PageDisplay_Zoom ( ) const

Gets the zoom factor of page display.

◆ get_PageNumber()

ASPOSE_PDF_SHARED_API int32_t Aspose::Pdf::Facades::Bookmark::get_PageNumber ( ) const

Gets the number of bookmark's destination page.

◆ get_RemoteFile()

ASPOSE_PDF_SHARED_API System::String Aspose::Pdf::Facades::Bookmark::get_RemoteFile ( ) const

Gets the file (path) which is required for "GoToR" action of bookmark.

◆ get_Title()

ASPOSE_PDF_SHARED_API System::String Aspose::Pdf::Facades::Bookmark::get_Title ( ) const

Gets bookmark's title.

◆ get_TitleColor()

ASPOSE_PDF_SHARED_API System::Drawing::Color Aspose::Pdf::Facades::Bookmark::get_TitleColor ( ) const

Gets the color of bookmark's title.

◆ set_Action()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::Bookmark::set_Action ( System::String  value)

Sets the action bound with the bookmark. If PageNumber is presented the action can not be specified. The action type includes: "GoTo", "GoToR", "Launch", "Named".

◆ set_BoldFlag()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::Bookmark::set_BoldFlag ( bool  value)

Sets the bold flag of bookmark's title.

◆ set_ChildItem()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::Bookmark::set_ChildItem ( System::SharedPtr< Bookmarks value)

Sets bookmark's children.

Deprecated:
Use ChildItems property instead of this one.

◆ set_ChildItems()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::Bookmark::set_ChildItems ( System::SharedPtr< Bookmarks value)

Sets bookmark's children.

◆ set_Destination()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::Bookmark::set_Destination ( System::String  value)

Sets bookmark's destination page. Required if action is set as string.Empty.

◆ set_ItalicFlag()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::Bookmark::set_ItalicFlag ( bool  value)

Sets the italic flag of bookmark's title.

◆ set_Level()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::Bookmark::set_Level ( int32_t  value)

Sets bookmark's hierarchy level.

◆ set_Open()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::Bookmark::set_Open ( bool  value)

Sets bookmark state (open, close).

◆ set_PageDisplay()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::Bookmark::set_PageDisplay ( System::String  value)

Sets the type of display bookmark's destination page.

◆ set_PageDisplay_Bottom()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::Bookmark::set_PageDisplay_Bottom ( int32_t  value)

Sets the bottom coordinate of page display.

◆ set_PageDisplay_Left()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::Bookmark::set_PageDisplay_Left ( int32_t  value)

Sets the left coordinate of page display.

◆ set_PageDisplay_Right()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::Bookmark::set_PageDisplay_Right ( int32_t  value)

Sets the right coordinate of page display.

◆ set_PageDisplay_Top()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::Bookmark::set_PageDisplay_Top ( int32_t  value)

Sets the top coordinate of page display.

◆ set_PageDisplay_Zoom()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::Bookmark::set_PageDisplay_Zoom ( int32_t  value)

Sets the zoom factor of page display.

◆ set_PageNumber()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::Bookmark::set_PageNumber ( int32_t  value)

Sets the number of bookmark's destination page.

◆ set_RemoteFile()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::Bookmark::set_RemoteFile ( System::String  value)

Sets the file (path) which is required for "GoToR" action of bookmark.

◆ set_Title()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::Bookmark::set_Title ( System::String  value)

Sets bookmark's title.

◆ set_TitleColor()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Facades::Bookmark::set_TitleColor ( System::Drawing::Color  value)

Sets the color of bookmark's title.

◆ ToOutlineItemCollection()

System::SharedPtr<OutlineItemCollection> Aspose::Pdf::Facades::Bookmark::ToOutlineItemCollection ( System::SharedPtr< Document doc)
protected