Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

IdxRichEditShapeCollection.InsertTextBox(IdxRichEditDocumentPosition) Method

Inserts a floating text box at the specified position within the document.

#Declaration

Delphi
function InsertTextBox(const APos: IdxRichEditDocumentPosition): IdxRichEditShape;

#Parameters

Name Type
APos IdxRichEditDocumentPosition

#Returns

Type
IdxRichEditShape

#Remarks

Call this function to:

  • Insert an empty floating text box anchored at the beginning of the page that includes the document position passed as the APos parameter;

  • Obtain the floating shape that hosts the created text box.

Refer to the How to Insert a Floating Text Box topic for additional information.

Note

Invoking the text box’s Shapes.InsertTextBox or Document.InsertTextBox function raises an exception, since the Rich Edit control does not support creating floating shapes within floating shapes.

See Also