# C++ を使用して PPTX 注釈を削除する

> PPTX から注釈を削除する C++ ソース コード

Source: https://products.aspose.com/slides/ja/cpp/annotation/pptx/
Updated: 2023-04-18



## C++ 経由で PPTX からコメントを削除する

PPTX ファイルから注釈を削除するには、[Aspose.Slides for C++](https://products.aspose.com/slides/ja/cpp/) API を使用します。これは、機能が豊富で強力で使いやすい API です。 C++ プラットフォーム用のドキュメント操作 API。

### PPTX から注釈を削除する - C++

```cpp

using namespace Aspose::Slides;
using namespace Aspose::Slides::Export;
using namespace System::Drawing;

auto presentation = System::MakeObject<Presentation>(u"example.pptx");

// Deletes all comments from the presentation
for (auto author : presentation->get_CommentAuthors())
{
    author->get_Comments()->Clear();
}

// Deletes all authors
presentation->get_CommentAuthors()->Clear();
presentation->Save(u"example_out.pptx", SaveFormat::Pptx);
```

## C++ 経由で PPTX からコメントを削除する方法

**Aspose.Slides for C++** をインストールします。 [**インストール**](https://docs.aspose.com/slides/cpp/installation/) を参照してください。

Presentation クラスのインスタンスを使用して PPTX をロードする

読み込まれた PPTX のすべての作成者を反復処理します

著者のすべてのコメントを削除する

最後にすべての作成者を削除します

## サポートされているその他の注釈形式
