Represents the list box field of a interactive forms.
For a list of all members of this type, see ListBox members.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
System.Object
ceTe.DynamicPDF.PageElement
ceTe.DynamicPDF.PageElements.Forms.FormElement
ceTe.DynamicPDF.PageElements.Forms.ListBoxField
ceTe.DynamicPDF.PageElements.Forms.ListBox
[Visual Basic]
Public Class ListBox
Inherits ListBoxField[C#]
public class ListBox : ListBoxFieldFor more details on list box fields take a look at the Interactive Forms topic.
NOTE: This page element cannot be used within a table cell, or tranformation group.This example shows how to create an List Box 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 List Box
Dim MyListBox As ListBox = New ListBox("list", 5, 2, 100, 150)
MyListBox.AddItem("One")
MyListBox.AddItem("Two")
MyListBox.AddItem("Three")
MyListBox.AddItem("Four")
MyListBox.AddItem("Five")
MyListBox.BackgroundColor = RgbColor.AliceBlue
MyListBox.BorderColor = RgbColor.DarkMagenta
MyListBox.BorderStyle = BorderStyle.Dashed
MyListBox.DefaultChoice = "One"
MyListBox.Multiselect = true
MyListBox.ToolTip = "Select"
' Add the List Box to the page
MyPage.Elements.Add(MyListBox)
' 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)
ListBox Members | ceTe.DynamicPDF.PageElements.Forms Namespace
© Copyright 2007, ceTe Software