Adds the new button control with specified unique name to the PdfPage.

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

Syntax

C#
public PdfButton AddButton(
	string name,
	PointF position,
	SizeF size
)
VB
Public Function AddButton ( 
	name As String,
	position As PointF,
	size As SizeF
) As PdfButton

Parameters

name
Type: System.String
The unique name of the button control.
position
Type: System.Drawing.PointF
The position of the upper-left corner of the button.
size
Type: System.Drawing.SizeF
The size of the button.

Return Value

Type: PdfButton
The newly created PdfButton object.

Remarks

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

See Also