See Also

RadioButton 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 radio button field of a interactive forms. Radio buttons are a set of related toggles, at most one of which may be on at any given time; selecting any one of the buttons automatically deselects all the others.

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

Object Model





Inheritance Hierarchy

System.Object
   ceTe.DynamicPDF.PageElement
      ceTe.DynamicPDF.PageElements.Forms.FormElement
         ceTe.DynamicPDF.PageElements.Forms.RadioButton

Syntax

[Visual Basic]
Public Class RadioButton    Inherits FormElement
[C#]
public class RadioButton : FormElement

Remarks

For more details on radio button fields take a look at the Interactive Forms topic.

Example

This example shows how to create an Radio Button 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 Radio Buttons
        Dim MyRadio As RadioButton = New RadioButton("rdbtn", 50, 25, 100, 75)
        MyRadio.DefaultChecked = true
        MyRadio.ToolTip = "first"

        Dim MyRadio1 As RadioButton = New RadioButton("rdbtn", 50, 140, 100, 75)
        MyRadio1.DefaultChecked = true
        MyRadio1.ExportValue = "abc"
        MyRadio1.ToolTip = "second"

        Dim MyRadio2 As RadioButton = New RadioButton("rdbtn", 50, 250, 100, 75)
        MyRadio2.DefaultChecked = true
        MyRadio2.ExportValue = "xyz"
        MyRadio2.ToolTip = "third"

        ' Add the Radio Buttons to the page
        MyPage.Elements.Add(MyRadio)
        MyPage.Elements.Add(MyRadio1)
        MyPage.Elements.Add(MyRadio2)

        ' 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 Radio Buttons 
        RadioButton radio = new RadioButton( "rdbtn", 50, 25, 100, 75 ); 
        radio.DefaultChecked = true; 
        radio.ToolTip = "first"; 
 
        RadioButton radio1 = new RadioButton( "rdbtn", 50, 140, 100, 75 ); 
        radio1.DefaultChecked = true; 
        radio1.ExportValue = "abc"; 
        radio1.ToolTip = "second"; 
 
        RadioButton radio2 = new RadioButton( "rdbtn", 50, 250, 100, 75 ); 
        radio2.DefaultChecked = true; 
        radio2.ExportValue = "xyz"; 
        radio2.ToolTip = "third"; 
         
        // Add the Radio Buttons to the page 
        page.Elements.Add( radio ); 
        page.Elements.Add( radio1 ); 
        page.Elements.Add( radio2 ); 
         
        // 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

RadioButton Members  | ceTe.DynamicPDF.PageElements.Forms Namespace

 

 


© Copyright 2006, ceTe Software