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

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

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



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

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

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

```cpp

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

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

// 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++ 経由で PPT からコメントを削除する方法

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

プレゼンテーション クラスのインスタンスを使用して PPT をロードする

ロードされた PPT のすべての作成者を反復する

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

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

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