ImageGear PDF v24.14 - Updated
SetWidget(ImGearPDFPage,ImGearPDFFixedRect,String) Method




ImageGear24.Formats.Pdf Assembly > ImageGear.Formats.PDF.Forms Namespace > PushButton Class > SetWidget Method : SetWidget(ImGearPDFPage,ImGearPDFFixedRect,String) Method
The page to place the push button widget.
The bounds of the push button widget.
The caption to place on the push button widget.
Detaches all widgets currently on the field, then creates a widget annotation on the specified page and at the specified location, and then attaches the widget to the field.
Syntax
'Declaration
 
Public Overloads Sub SetWidget( _
   ByVal page As ImGearPDFPage, _
   ByVal rect As ImGearPDFFixedRect, _
   ByVal caption As String _
) 
'Usage
 
Dim instance As PushButton
Dim page As ImGearPDFPage
Dim rect As ImGearPDFFixedRect
Dim caption As String
 
instance.SetWidget(page, rect, caption)
public void SetWidget( 
   ImGearPDFPage page,
   ImGearPDFFixedRect rect,
   string caption
)
public: void SetWidget( 
   ImGearPDFPage* page,
   ImGearPDFFixedRect* rect,
   string* caption
) 
public:
void SetWidget( 
   ImGearPDFPage^ page,
   ImGearPDFFixedRect^ rect,
   String^ caption
) 

Parameters

page
The page to place the push button widget.
rect
The bounds of the push button widget.
caption
The caption to place on the push button widget.
Remarks
References to the field's widgets remain valid and can be re-attached to other fields. To dispose memory associated with removed widgets, call DisposeWidgets first.
See Also

Reference

PushButton Class
PushButton Members
Overload List