Adds the new button control with auto-generated name to the PdfPage.

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

Syntax

C#
public PdfButton AddButton(
	PdfPoint position,
	PdfSize size
)
VB
Public Function AddButton ( 
	position As PdfPoint,
	size As PdfSize
) As PdfButton

Parameters

position
Type: BitMiracle.Docotic.Pdf.PdfPoint
The position of the upper-left corner of the button.
size
Type: BitMiracle.Docotic.Pdf.PdfSize
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