Aspose::Pdf::Collection Class Reference

Represents class for Collection(12.3.5 Collections). More...

Inherits Aspose::Pdf::EmbeddedFileCollection.

Public Member Functions

System::String get_DefaultEntry ()
 Default embedded file name. More...
 
 Collection ()
 Initializes new Collection object. More...
 
- Public Member Functions inherited from Aspose::Pdf::EmbeddedFileCollection
bool get_IsSynchronized ()
 Gets a value indicating whether access to this collection is synchronized (thread safe). More...
 
System::SharedPtr< System::Objectget_SyncRoot () const
 Gets an object that can be used to synchronize access to this collection. More...
 
int32_t get_Count () const
 Gets number of embedded files in collection. More...
 
bool get_IsReadOnly () const
 Determines if collection is read only. Always returns false. More...
 
void CopyTo (System::ArrayPtr< System::SharedPtr< FileSpecification >> array, int32_t index)
 Copies array of FileSpecification object into colleciton. More...
 
System::SharedPtr< System::Collections::Generic::IEnumerator< System::SharedPtr< FileSpecification > > > GetEnumerator ()
 Returns colleciton enumerator. More...
 
void Add (System::SharedPtr< FileSpecification > const &file)
 Adds embedded file specification into collection. More...
 
void Add (System::String key, System::SharedPtr< FileSpecification > file)
 Adds file to embedded files with the specified key. More...
 
void DeleteByKey (System::String key)
 Deletes file from the collection by its key in the collection. More...
 
void Delete (System::String name)
 Delete embedded file by name. More...
 
void Delete ()
 Remove all embedded files from document. More...
 
bool Remove (System::SharedPtr< FileSpecification > const &item)
 Removes specified FileSpecification from collection. Not supported. More...
 
bool Contains (System::SharedPtr< FileSpecification > const &item) const
 Determines if collection contains specified FileSpecification. Not supported. More...
 
void Clear ()
 Remove all embedded files from document. More...
 
System::SharedPtr< FileSpecificationidx_get (int32_t index)
 Gets embedded file by its index. More...
 
System::SharedPtr< FileSpecificationidx_get (System::String name)
 Gets embedded file by its name. More...
 
- Public Member Functions inherited from System::Collections::Generic::ICollection< System::SharedPtr< Aspose::Pdf::FileSpecification > >
virtual void CopyTo (System::ArrayPtr< System::SharedPtr< Aspose::Pdf::FileSpecification > > array, int arrayIndex)=0
 
ICollectionoperator= (ICollection &&)
 
ICollectionoperator= (const ICollection &)
 
 ICollection ()
 Default constructor. More...
 
 ICollection (const ICollection &)
 Copy constructor. More...
 
 ICollection (ICollection &&)
 Move constructor. More...
 
virtual ~ICollection ()
 Destructor. More...
 
- Public Member Functions inherited from System::Collections::Generic::IEnumerable< System::SharedPtr< Aspose::Pdf::FileSpecification > >
System::SharedPtr< Aspose::Pdf::FileSpecificationLINQ_ElementAt (int index)
 
System::SharedPtr< Aspose::Pdf::FileSpecificationLINQ_First ()
 
System::SharedPtr< Aspose::Pdf::FileSpecificationLINQ_FirstOrDefault ()
 
System::SharedPtr< Aspose::Pdf::FileSpecificationLINQ_FirstOrDefault (std::function< bool(System::SharedPtr< Aspose::Pdf::FileSpecification >)> predicate)
 
System::SharedPtr< Aspose::Pdf::FileSpecificationLINQ_Last ()
 
System::SharedPtr< Aspose::Pdf::FileSpecificationLINQ_LastOrDefault ()
 
SharedPtr< List< System::SharedPtr< Aspose::Pdf::FileSpecification > > > LINQ_ToList ()
 
int LINQ_Count ()
 
System::ArrayPtr< System::SharedPtr< Aspose::Pdf::FileSpecification > > LINQ_ToArray ()
 
bool LINQ_All (std::function< bool(System::SharedPtr< Aspose::Pdf::FileSpecification >)> predicate)
 
bool LINQ_Any ()
 
bool LINQ_Any (std::function< bool(System::SharedPtr< Aspose::Pdf::FileSpecification >)> predicate)
 
SharedPtr< IEnumerable< System::SharedPtr< Aspose::Pdf::FileSpecification > > > LINQ_Where (std::function< bool(System::SharedPtr< Aspose::Pdf::FileSpecification >)> predicate)
 
bool LINQ_Contains (System::SharedPtr< Aspose::Pdf::FileSpecification > value)
 
SharedPtr< IEnumerable< ResultType > > LINQ_Cast ()
 
SharedPtr< IEnumerable< Result > > LINQ_Cast ()
 
SharedPtr< IEnumerable< ResultType > > LINQ_OfType ()
 
SharedPtr< IEnumerable< Result > > LINQ_OfType ()
 
SharedPtr< IEnumerable< ResultType > > LINQ_Select (const Func< System::SharedPtr< Aspose::Pdf::FileSpecification >, ResultType > &selector)
 
SharedPtr< IEnumerable< Result > > LINQ_Select (const Func< Source, Result > &selector)
 
- 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 refernce 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 int 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 (unsigned int argument)
 Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More...
 
template<>
bool Equals (float const &objA, float const &objB)
 
template<>
bool Equals (double const &objA, double const &objB)
 
template<>
bool ReferenceEquals (String const &str, std::nullptr_t)
 
template<>
bool ReferenceEquals (String const &str1, String const &str2)
 

Protected Member Functions

 Collection (System::SharedPtr< Document > document)
 Initializes new Collection object. More...
 
- Protected Member Functions inherited from Aspose::Pdf::EmbeddedFileCollection
 EmbeddedFileCollection ()
 Constructor of EmbeddedFileCollection. More...
 
 EmbeddedFileCollection (System::SharedPtr< Document > document)
 Constructor of EmbeddedFileCollection. More...
 
void ConvertToObjects ()
 
virtual ~EmbeddedFileCollection ()
 
- Protected Member Functions inherited from System::Collections::Generic::IEnumerable< System::SharedPtr< Aspose::Pdf::FileSpecification > >
 ~IEnumerable () override
 Destructor. More...
 

Additional Inherited Members

- Public Types inherited from System::Collections::Generic::ICollection< System::SharedPtr< Aspose::Pdf::FileSpecification > >
typedef System::SharedPtr< Aspose::Pdf::FileSpecificationValueType
 Value type name. More...
 
typedef ICollection< System::SharedPtr< Aspose::Pdf::FileSpecification > > ThisType
 Collection type name. More...
 
- Public Types inherited from System::Collections::Generic::IEnumerable< System::SharedPtr< Aspose::Pdf::FileSpecification > >
typedef IEnumerator< System::SharedPtr< Aspose::Pdf::FileSpecification > > IEnumeratorType
 Enumerator type. More...
 
using ValueType = System::SharedPtr< Aspose::Pdf::FileSpecification >
 
- Public Types inherited from System::Object
typedef SmartPtr< Objectptr
 Alias for smart pointer type. More...
 
typedef System::Details::SharedMembersType shared_members_type
 structure to keep list of shared pointers contained in object. 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 ()
 Impleemnts C# typeof(System.Object) construct. More...
 
- Protected Attributes inherited from Aspose::Pdf::EmbeddedFileCollection
System::SharedPtr< Engine::IPdfDocument > EngineDoc
 PDF document where embedded files are placed. More...
 

Detailed Description

Represents class for Collection(12.3.5 Collections).

Constructor & Destructor Documentation

◆ Collection() [1/2]

Aspose::Pdf::Collection::Collection ( )

Initializes new Collection object.

◆ Collection() [2/2]

Aspose::Pdf::Collection::Collection ( System::SharedPtr< Document document)
protected

Initializes new Collection object.

Parameters
documentDocument object.

Member Function Documentation

◆ get_DefaultEntry()

System::String Aspose::Pdf::Collection::get_DefaultEntry ( )

Default embedded file name.