# C++ で PPT を編集する

> C++ で PPT を編集します。 C++ ライブラリ API を使用して PowerPoint プレゼンテーションを編集する

Source: https://products.aspose.com/slides/ja/cpp/editor/ppt/
Updated: 2022-12-23



## Aspose.Slides を使用して PPT を編集する

[**Aspose.Slides for C++**](https://products.aspose.com/slides/ja/cpp/) は、プレゼンテーションの操作と編集に使用される強力な C++ ライブラリです。新しいテキスト行を追加することで、PPT プレゼンテーションを編集できます。

## C++ で PPT を編集する

[**Aspose.Slides for C++**](https://products.aspose.com/slides/ja/cpp/) を使用すると、わずか数行のコードで新しいテキスト行を PPT ドキュメントに追加できます。

### PPT を編集するための C++ コード

```cpp

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

auto slide = pres->get_Slides()->idx_get(0);
auto shape = slide->get_Shapes()->AddAutoShape(ShapeType::Rectangle, 10.0f, 10.0f, 100.0f, 50.0f);
shape->get_TextFrame()->set_Text(u"New text");

pres->Save(u"pres.pdf", SaveFormat::Ppt);
```

## C++ で PPT を編集する方法

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

ライブラリを参照としてプロジェクトに追加します。

プレゼンテーション クラスのインスタンスを作成します。

編集する PPT プレゼンテーションを読み込みます。

新しいテキスト行を追加します。

変更した PowerPoint ファイルを保存します。

## 他のファイルを編集する
