Skip to main content

Creating a Text Area

Code example explaining how to set up text areas.

Refer to How to Use the Text Area for a text area introduction.

Create and Configure a Text Area

public static void CreateTextArea(AnalysisApplication application, string rtfText)
{
    // Add a text area to the page
    TextArea textArea = application.Document.ActivePageReference.Visuals.AddNew<TextArea>();
    textArea.Title = "Basic Text Area";

    // Add text to the text area in rtf format
    textArea.RtfContent = rtfText;
}