Represents the text field of a interactive forms. Text fields are boxes or spaces in which the user can enter text from the keyboard.
For a list of all members of this type, see TextField members.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
ceTe.DynamicPDF.PageElement
ceTe.DynamicPDF.PageElements.Forms.FormElement
ceTe.DynamicPDF.PageElements.Forms.TextField
[Visual Basic]
Public Class TextField
Inherits FormElement[C#]
public class TextField : FormElementFor more details on text fields take a look at the Interactive Forms topic.
This example shows how to create an Text Field and Add it to the page.
[Visual Basic]
Imports System
Imports ceTe.DynamicPDF
Imports ceTe.DynamicPDF.PageElements.Forms
Module MyModule
Sub Main()
' Create a PDF Document
Dim MyDocument As Document = New Document
' Create a PDF Page
Dim MyPage As Page = New Page(PageSize.Letter)
' Create an Text Field
Dim MyTextField As TextField = New TextField("txt", 50, 75, 150, 100)
MyTextField.TextAlign = Align.Center
MyTextField.BackgroundColor = RgbColor.AliceBlue
MyTextField.BorderColor = RgbColor.DeepPink
MyTextField.Font = Font.TimesItalic
MyTextField.FontSize = 16.0f
MyTextField.TextColor = RgbColor.Brown
MyTextField.DefaultValue = "ceTe Software pvt ltd. A Division of Cochran Software."
MyTextField.MultiLine = true
MyTextField.ToolTip = "Text"
' Add the Text Field to the page
MyPage.Elements.Add(MyTextField)
' Add pages to the document
MyDocument.Pages.Add(MyPage)
' Save the PDF document
MyDocument.Draw("C:\MyDocument.pdf")
End Sub
End Module
[C#]
using System; |
This class is a DynamicPDF Generator Enterprise Edition feature. One of the following licenses is required for non-evaluation usage:
Namespace: ceTe.DynamicPDF.PageElements.Forms
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)
TextField Members | ceTe.DynamicPDF.PageElements.Forms Namespace
© Copyright 2006, ceTe Software