See Also

HtmlTextAreaStyle Members  | ceTe.DynamicPDF.PageElements Namespace

Requirements

Namespace: ceTe.DynamicPDF.PageElements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: ceTe.DynamicPDF (in ceTe.DynamicPDF.dll)

Language

Visual Basic

C#

Show All

Obsolete. Represents an HTML text area style.

For a list of all members of this type, see HtmlTextAreaStyle members.

Object Model




Inheritance Hierarchy

System.Object
   ceTe.DynamicPDF.PageElements.HtmlTextAreaStyle

Syntax

[Visual Basic]
Public Class HtmlTextAreaStyle
[C#]
public class HtmlTextAreaStyle

Remarks

NOTE: This class is now obsolete. Use the FormattedTextAreaStyle class instead. This class can be used to define a certain style of text to be used with an HtmlTextArea.

Example

The following example shows a paragraph of HTML formatted text being displayed 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 an HTML style
        Dim style As HtmlTextAreaStyle = New HtmlTextAreaStyle(FontFamily.Helvetica, 12, False)

        ' Create the text and the HTML text area
        Dim htmlText As String = "<p>HTML text area provide rich formatting support for " + _
            "text that appears in the document. You have complete control over 8 paragraph " + _
            "properties: spacing before, spacing after, first line indentation, left indentation," + _
            " right indentation, alignment, allowing orphan lines, and white space preservation; " + _
            "6 font properties: <font face='Times'>font face, </font><font " + _
            "pointSize='6'>font size, </font><font color='FF0000'>color, " + _
            "</font><b>bold, </b><i<italic and </i><u>" + _
            "underline</u>; and 2 line properties: leading, and leading type. Text can " + _
            "also be rotated.</p>"

        Dim MyHtmlTextArea As HtmlTextArea = New HtmlTextArea(htmlText, 0, 0, 256, 400, style)

        ' Add the HTML text area to the page
        MyPage.Elements.Add(MyHtmlTextArea)

        ' 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 an HTML style 
        HtmlTextAreaStyle style = new HtmlTextAreaStyle( FontFamily.Helvetica, 12, false ); 
 
        // Create the text and the HTML text area 
        string htmlText = "<p>HTML text area provide rich formatting support for text that " +  
            "appears in the document. You have complete control over 8 paragraph properties: " +  
            "spacing before, spacing after, first line indentation, left indentation, right " +  
            "indentation, alignment, allowing orphan lines, and white space preservation; 6 " +  
            "font properties: <font face='Times'>font face, </font><font " +  
            "pointSize='6'>font size, </font><font color='FF0000'>color, " +  
            "</font><b>bold, </b><i>italic and </i><u>" +  
            "underline</u>; and 2 line properties: leading, and leading type. Text can " +  
            "also be rotated.</p>";  
 
        HtmlTextArea htmlTextArea = new HtmlTextArea( htmlText, 0, 0, 256, 400, style ); 
 
        // Add the HTML text area to the page 
        page.Elements.Add( htmlTextArea );     
 
        // Save the PDF 
        document.Draw( @"C:\MyDocument.pdf" ); 
    } 
}

Licensing

This class is a DynamicPDF Generator Professional Edition feature. One of the following licenses is required for non-evaluation usage:

Requirements

Namespace: ceTe.DynamicPDF.PageElements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: ceTe.DynamicPDF (in ceTe.DynamicPDF.dll)

See Also

HtmlTextAreaStyle Members  | ceTe.DynamicPDF.PageElements Namespace

 

 


© Copyright 2006, ceTe Software