Represents an area of text.

For a list of all members of this type, see TextArea Members


System.Object
   ceTe.DynamicPDF.PageElement
      ceTe.DynamicPDF.PageElements.RotatingPageElement
public class TextArea : RotatingPageElement, IArea, ICoordinate

Remarks

This class can be used to place text on a page. Using the methods GetOverflowText or GetOverflowTextArea and HasOverflowText, users can control the pagination of TextAreas that come from a source of unknown length.

Example

The following example will display text on the page.

[Visual Basic]
Imports System
Imports ceTe.DynamicPDF
Imports ceTe.DynamicPDF.PageElements

Module MyModule
        
    Sub Main()
        
        ' Create a PDF Document
        Dim MyDocument As Document = New Document 
        
        ' Create a Page and add it to the document
        Dim MyPage As Page = New Page
        MyDocument.Pages.Add(MyPage)

        ' Create a text area
        Dim MyTextArea As TextArea = New TextArea("This is the " + _
            "underlined text of a TextArea", 100, 100, 400, 30, _
            ceTe.DynamicPDF.Font.HelveticaBoldOblique, 18)

        ' Change the underline property to true
        MyTextArea.Underline = True

        ' Add the text to the page
        MyPage.Elements.Add(MyTextArea)

        ' Save the PDF
        MyDocument.Draw("C:\MyDocument.pdf")
        
    End Sub
End Module
[C#]
using System;
using ceTe.DynamicPDF;
using ceTe.DynamicPDF.PageElements;

class MyClass
{
    static void Main()
    {
        // Create a PDF Document
        Document document = new Document();

        // Create a Page and add it to the document
        Page page = new Page();
        document.Pages.Add( page );
        
        // Create a text area
        TextArea textArea = new TextArea( "This is the underlined " +
            "text of a TextArea", 100, 100, 400, 30, 
            ceTe.DynamicPDF.Font.HelveticaBoldOblique, 18 );

        // Change the underline property to true
        textArea.Underline = true;

        // Add the text area to the page
        page.Elements.Add( textArea );    

        // Save the PDF
        document.Draw( @"C:\MyDocument.pdf" );
    }
}

Requirements

Namespace: ceTe.DynamicPDF.PageElements Namespace

Assembly: DynamicPDF.Generator.[Edition].dll

See Also

TextArea members | ceTe.DynamicPDF.PageElements Namespace