Table of Contents

Method AddButton

Namespace
BitMiracle.Docotic.Pdf
Assembly
BitMiracle.Docotic.Pdf.dll

AddButton(PdfPoint, PdfSize)

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

public PdfButton AddButton(PdfPoint position, PdfSize size)

Parameters

position PdfPoint

The position of the upper-left corner of the button.

size PdfSize

The size of the button.

Returns

PdfButton

The newly created PdfButton object.

Remarks

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

AddButton(PdfRectangle)

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

public PdfButton AddButton(PdfRectangle boundingBox)

Parameters

boundingBox PdfRectangle

The PdfRectangle structure that specifies the location and the size of the button.

Returns

PdfButton

The newly created PdfButton object.

Remarks

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

AddButton(double, double, double, double)

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

public PdfButton AddButton(double left, double top, double width, double height)

Parameters

left double

The x-coordinate of the upper-left corner of the button.

top double

The y-coordinate of the upper-left corner of the button.

width double

The width of the button.

height double

The height of the button.

Returns

PdfButton

The newly created PdfButton object.

Remarks

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

AddButton(string, PdfPoint, PdfSize)

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

public PdfButton AddButton(string name, PdfPoint position, PdfSize size)

Parameters

name string

The unique name of the button control.

position PdfPoint

The position of the upper-left corner of the button.

size PdfSize

The size of the button.

Returns

PdfButton

The newly created PdfButton object.

Remarks

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

AddButton(string?, PdfRectangle)

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

public PdfButton AddButton(string? name, PdfRectangle boundingBox)

Parameters

name string

The unique name of the button control.

boundingBox PdfRectangle

The PdfRectangle structure that specifies the location and the size of the button.

Returns

PdfButton

The newly created PdfButton object.

Remarks

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

AddButton(string?, double, double, double, double)

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

public PdfButton AddButton(string? name, double left, double top, double width, double height)

Parameters

name string

The unique name of the button control.

left double

The x-coordinate of the upper-left corner of the button.

top double

The y-coordinate of the upper-left corner of the button.

width double

The width of the button.

height double

The height of the button.

Returns

PdfButton

The newly created PdfButton object.

Remarks

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