Class

PDFButton


Description

A standard button which can submit the values of the controls, reset them all or send the PDF as a file.

Methods

Name

Parameters

Returns

Shared

Constructor

pageNumber As Integer, x As Integer, y As Integer, width As Integer, height As Integer

Enumerations

PDFButton.Actions

Actions

The actions that can be taken when a button is pressed.

Enum

Description

ResetForm

Clears values from all controls.

SendPDFFile

Sends the PDFDocument to the URL.

SendForm

Sends the values from all controls to the URL.

Property descriptions


PDFButton.Action

Action As PDFButton.Action = PDFButton.Actions.Resetform

The action the button will take when pressed.


PDFButton.Caption

Caption As String

The text of the button.


PDFButton.FontSize

FontSize As Integer

The size of the font of the control.


PDFButton.Height

Height As Integer

The height of the control.


PDFButton.Name

Name As String

The name of the control.


PDFButton.Page

Page As Integer

The number of the page upon which the control was created.

This property is read-only.


PDFButton.URL

URL As String

The URL to which the values of controls will be submitted.


PDFButton.Width

Width As Integer

The width of the control.


PDFButton.X

X As Integer

The location on the X axis of the upper-left corner of the control.


PDFButton.Y

Y As Integer

The location on the Y axis of the upper-left corner of the control.

Method descriptions


PDFButton.Constructor

Constructor(pageNumber As Integer, x As Integer, y As Integer, width As Integer, height As Integer)

Note

Constructors are special methods called when you create an object with the New keyword and pass in the parameters above.

Creates an instance of the button with the values passed.

Notes

Only the button caption is drawn. If you wish there to be a border, you must draw that yourself.

Compatibility

All project types on all supported operating systems.

See also

PDFControl parent class; PDFDocument.AddControl method, PDFControl class.