Aspose.Slides for C++ 21.11 Release Notes
Contents
[
Hide
]
This page contains release notes for Aspose.Slides for C++ 21.11
Supported Platforms
- Aspose.Slides for C++ for Windows x64 (Microsoft Visual C++).
- Aspose.Slides for C++ for Windows x86 (Microsoft Visual C++).
- Aspose.Slides for C++ for Linux (Clang).
New Features and Enhancements
Key | Summary | Category |
---|---|---|
SLIDESNET-42576 | Implement modern comments | Feature |
Other Improvements and Changes
Key | Summary | Category |
---|---|---|
SLIDESCPP-2777 | Use Aspose.Slides for .NET 21.11 features | Enhancement |
Public API Changes
Modern Comments are now supported
We implemented support for PowerPoint Modern Comments.
For modern comments, we added the ModernComment class. We added the AddModernComment() and InsertModernComment() methods to CommentCollection class. Using these methods, you can add a modern comment to a slide.
This code snippet demonstrates the addition of a modern comment to a slide:
using namespace Aspose::Slides;
using namespace Aspose::Slides::Export;
auto pres = System::MakeObject<Presentation>();
auto newAuthor = pres->get_CommentAuthors()->AddAuthor(u"Some Author", u"SA");
auto modernComment = newAuthor->get_Comments()->AddModernComment(u"This is a modern comment",
pres->get_Slides()->idx_get(0), nullptr, System::Drawing::PointF(100.0f, 100.0f), System::DateTime::get_Now());
pres->Save(u"pres.pptx", SaveFormat::Pptx);
Obsolete enumeration SlideOrienation has been removed
Obsolete enumeration SlideOrienation
has been removed. Use the SlideOrientation enumeration instead.
IMathElement::GetChildren() method has been added
GetChildren() method has been added to the IMathElement interface.
Method declaration:
/// <summary>
/// Get children elements
/// </summary>
virtual System::ArrayPtr<System::SharedPtr<IMathElement>> GetChildren() = 0;
Usage example:
using namespace Aspose::Slides;
using namespace Aspose::Slides::MathText;
void ForEachMathElement(System::SharedPtr<IMathElement> root)
{
for (System::SharedPtr<IMathElement> child : root->GetChildren())
{
//do some action with child
//...
//recursive call
//ForEachMathElem(child);
}
}