Docotic.Pdf Library Help > BitMiracle.Docotic.Pdf > PdfPage Class > PdfPage Methods > AddListBox Method > AddListBox Method (String, Double, Double, Double, Double)
Adds the new list box control with specified unique name to the PdfPage.

Namespace:  BitMiracle.Docotic.Pdf
Assembly:  BitMiracle.Docotic.Pdf (in BitMiracle.Docotic.Pdf.dll)

Syntax

C#
public PdfListBox AddListBox(
	string name,
	double left,
	double top,
	double width,
	double height
)
VB
Public Function AddListBox ( 
	name As String,
	left As Double,
	top As Double,
	width As Double,
	height As Double
) As PdfListBox

Parameters

name
Type: System.String
The unique name of the list box control.
left
Type: System.Double
The x-coordinate of the upper-left corner of the list box.
top
Type: System.Double
The y-coordinate of the upper-left corner of the list box.
width
Type: System.Double
The width of the list box.
height
Type: System.Double
The height of the list box.

Return Value

Type: PdfListBox
The newly created PdfListBox object.

Remarks

The Rotation of the new list box is set to the rotation (PdfPage.Rotation) of the owner page.

See Also