CommentAuthorCollection

CommentAuthorCollection

Overview

CommentAuthorCollection is a class in Aspose.Slides FOSS for C++.

Manages a collection of comment authors in a presentation.

This class provides 24 methods for working with CommentAuthorCollection objects in C++ programs. Available methods include: CommentAuthorCollection, add_author, as_i_collection, as_i_enumerable, begin, clear, end, find_by_name, find_by_name_and_initials, init_internal, remove, remove_at, and 2 additional methods. All public members are accessible to any C++ application after installing the Aspose.Slides FOSS for C++ package. Properties: CommentAuthorCollection.

Properties

NameTypeAccessDescription
CommentAuthorCollectionCommentAuthorCollectionReadGets the comment author collection.

Methods

SignatureDescription
CommentAuthorCollection()CommentAuthorCollectionProperty provides access to the collection instance
CommentAuthorCollection()CommentAuthorCollection
CommentAuthorCollection()CommentAuthorCollection
CommentAuthorCollection()CommentAuthorCollection
CommentAuthorCollection()CommentAuthorCollection
CommentAuthorCollection()
init_internal(authors_part: Internal::pptx::CommentAuthorsPart, package: Internal::opc::OpcPackage)Initializes the internal PPTX persistence layer for this collection. Links the collection to its XML-backed CommentAuthorsPart so that authors are loaded from the underlying XML document.
add_author(name: std::string, initials: std::string)CommentAuthorAdds a new author with the given name and initials.
to_array()std::vector<CommentAuthor*>Returns a copy of all authors as a vector of non-owning pointers.
to_array()std::vector<const CommentAuthor*>Returns a copy of all authors as a vector of non-owning pointers.
find_by_name(name: std::string)std::vector<CommentAuthor*>Finds authors whose name matches the given value.
find_by_name_and_initials(name: std::string, initials: std::string)std::vector<CommentAuthor*>Finds authors whose name and initials both match.
remove_at(index: std::size_t)Removes the author at the given index, clearing its comments first.
remove(author: CommentAuthor)Removes the specified author from the collection.
clear()Removes all authors from the collection, clearing their comments first.
size()std::size_tReturns the number of authors.
as_i_collection()CommentAuthorCollectionReturns a reference to this collection as a generic collection interface.
as_i_collection()CommentAuthorCollectionReturns a reference to this collection as a generic collection interface.
as_i_enumerable()CommentAuthorCollectionReturns a reference to this collection as a generic enumerable interface.
as_i_enumerable()CommentAuthorCollectionReturns a reference to this collection as a generic enumerable interface.
begin()auto
end()auto
begin()auto
end()auto

See Also