See Also

ComboBox Members  | ceTe.DynamicPDF.PageElements.Forms Namespace

Requirements

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)

Language

Visual Basic

C#

Show All

Represents the combo box field of a interactive forms. A combo box consisting of a drop list.

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

Object Model






Inheritance Hierarchy

System.Object
   ceTe.DynamicPDF.PageElement
      ceTe.DynamicPDF.PageElements.Forms.FormElement
         ceTe.DynamicPDF.PageElements.Forms.ListBoxField
            ceTe.DynamicPDF.PageElements.Forms.ComboBox

Syntax

[Visual Basic]
Public Class ComboBox    Inherits ListBoxField
[C#]
public class ComboBox : ListBoxField

Remarks

For more details on combo box fields take a look at the Interactive Forms topic.

NOTE: This page element cannot be used within a table cell, or tranformation group.

Example

This example shows how to create an Combo 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 Combo Box
        Dim MyComboBox As ComboBox = New ComboBox("combo", 50, 75, 150, 25)
        MyComboBox.AddItem("One")
        MyComboBox.AddItem("Two")
        MyComboBox.AddItem("Three")
        MyComboBox.AddItem("Four")
        MyComboBox.AddItem("Five")
        MyComboBox.BackgroundColor = RgbColor.AliceBlue
        MyComboBox.BorderColor = RgbColor.DarkMagenta
        MyComboBox.DefaultChoice = "One"
        MyComboBox.Editable = true
        MyComboBox.ToolTip = "Select"

        ' Add the Combo Box to the page
        MyPage.Elements.Add(MyComboBox)

        ' 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; 
using ceTe.DynamicPDF; 
using ceTe.DynamicPDF.PageElements.Forms; 
 
class MyClass 

    static void Main() 
    { 
        // Create a PDF Document 
        Document document = new Document(); 
         
        // Create a PDF Page 
        Page page = new Page( PageSize.Letter ); 
         
        // Create an Combo Box 
        ComboBox comboBox = new ComboBox( "combo", 50, 75, 150, 25 ); 
        comboBox.AddItem( "One" ); 
        comboBox.AddItem( "Two" ); 
        comboBox.AddItem( "Three" ); 
        comboBox.AddItem( "Four" ); 
        comboBox.AddItem( "Five" ); 
        comboBox.BackgroundColor = RgbColor.AliceBlue; 
        comboBox.BorderColor = RgbColor.DarkMagenta; 
        comboBox.DefaultChoice = "One"; 
        comboBox.Editable = true; 
        comboBox.ToolTip = "Select"; 
         
        // Add the Combo Box to the page 
        page.Elements.Add( comboBox ); 
         
        // Add pages to the document 
        document.Pages.Add( page ); 
         
        // Save the PDF document 
        document.Draw( @"C:\MyDocument.pdf" ); 
    } 
}

Licensing

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

Requirements

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)

See Also

ComboBox Members  | ceTe.DynamicPDF.PageElements.Forms Namespace

 

 


© Copyright 2007, ceTe Software