# C++ を使用して ODP アノテーションを削除する

> ODP から注釈を削除するための C++ ソース コード

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



## C++ 経由で ODP からコメントを削除

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

### ODP からの注釈の削除 - C++

```cpp

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

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

// 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++ を介して ODP からコメントを削除する方法

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

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

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

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

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

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