---
title: "Aspose::Pdf::Facades::PdfContentEditor::CreateText method"
url: "https://reference.aspose.com/pdf/cpp/aspose.pdf.facades/pdfcontenteditor/createtext/"
product: "Aspose.PDF for C++ API Reference"
description: "Aspose::Pdf::Facades::PdfContentEditor::CreateText method. Creates text annotation in PDF document in C++."
---

## PdfContentEditor::CreateText method


Creates text annotation in PDF document.

```cpp
void Aspose::Pdf::Facades::PdfContentEditor::CreateText(System::Drawing::Rectangle rect, const System::String &title, const System::String &contents, bool open, const System::String &icon, int32_t page)
```


| Parameter | Type | Description |
| --- | --- | --- |
| rect | System::Drawing::Rectangle | The annotation rectangle defining the location of the annotation on the page. |
| title | const System::String\& | The title of the annotation. |
| contents | const System::String\& | The contents of the annotation. |
| open | bool | A flag specifying whether the annotation should initially be displayed open. |
| icon | const System::String\& | The name of an icon will be used in displaying the annotation. This value can be: "Comment", "Key", "Note", "Help", "NewParagraph", "Paragraph", "Insert" |
| page | int32_t | The number of original page where the text annotation will be created. |

## See Also

* Class [Rectangle](../../../system.drawing/rectangle/)
* Class [String](../../../system/string/)
* Class [PdfContentEditor](../)
* Namespace [Aspose::Pdf::Facades](../../)
* Library [Aspose.PDF for C++](../../../)
