ImageGear .NET v25.0 - Updated
SetWidget(ImGearPDFPage,ImGearPDFFixedRect) Method




ImageGear.Formats.Pdf Assembly > ImageGear.Formats.PDF.Forms Namespace > Field Class > SetWidget Method : SetWidget(ImGearPDFPage,ImGearPDFFixedRect) Method
The page to place the push button widget.
The bounds of 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 _
) 
'Usage
 
Dim instance As Field
Dim page As ImGearPDFPage
Dim rect As ImGearPDFFixedRect
 
instance.SetWidget(page, rect)
public void SetWidget( 
   ImGearPDFPage page,
   ImGearPDFFixedRect rect
)
public: void SetWidget( 
   ImGearPDFPage* page,
   ImGearPDFFixedRect* rect
) 
public:
void SetWidget( 
   ImGearPDFPage^ page,
   ImGearPDFFixedRect^ rect
) 

Parameters

page
The page to place the push button widget.
rect
The bounds of 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

Field Class
Field Members
Overload List