PdfPage.AddButton Method (Double, Double, Double, Double)

Docotic.Pdf library help > BitMiracle.Docotic.Pdf > PdfPage Class > PdfPage Methods > AddButton Method > AddButton Method (Double, Double, Double, Double)
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(
	double left,
	double top,
	double width,
	double height
)
VB
Public Function AddButton ( 
	left As Double,
	top As Double,
	width As Double,
	height As Double
) As PdfButton

Parameters

left
Type: System.Double
The x-coordinate of the upper-left corner of the button.
top
Type: System.Double
The y-coordinate of the upper-left corner of the button.
width
Type: System.Double
The width of the button.
height
Type: System.Double
The height of the button.

Return Value

Type: PdfButton
The newly created PdfButton object.

Remarks

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

See Also