PDF SDK Documentation

Comprehensive Guide for Developers: Features, Integration, and API Reference

Loading...
Searching...
No Matches
content.h
1// Copyright (c) 2009-2025 Avanquest Software. All rights reserved.
2
3#ifndef PDFSDK_CXX_PDF_CONTENT_H_INCLUDED_
4#define PDFSDK_CXX_PDF_CONTENT_H_INCLUDED_
5
7
8#include "forward_declarations.h"
9#include "wrapper_base.h"
10
11namespace PDF {
12
29class Content : public detail::RefCountedHandle<PDEContent> {
30public:
35 static Content Create();
36
41 size_t GetNumElements() const;
42
48 Element GetElement(size_t index) const;
49
55 void InsertElement(size_t index, const Element& element);
56
61 void AppendElement(const Element& element);
62
67 void RemoveElement(size_t index);
68
69 PDF_CXX_CORE_WRAPPER_DEFINE_MEMBERS_(Content, PDEContent)
70};
71
72} // namespace PDF
73
74#include "content_impl.inl"
75
76#endif // PDFSDK_CXX_PDF_CONTENT_H_INCLUDED_
Represents a content array.
Definition content.h:29
void InsertElement(size_t index, const Element &element)
Inserts an element at the specified index inside the element array.
void RemoveElement(size_t index)
Removes the element at the specified index.
void AppendElement(const Element &element)
Appends an element to the end of the content array.
static Content Create()
Creates a new instance of a Content class.
size_t GetNumElements() const
Gets the number of elements in a content array.
Element GetElement(size_t index) const
Gets the element at the specified index in the content array.
Represents an element of the content array.
Definition element.h:29
Content API.