ImageGear .NET v25.2 - Updated
SetWidget(WidgetAnnotation) Method




ImageGear.Formats.Pdf Assembly > ImageGear.Formats.PDF.Forms Namespace > Field Class > SetWidget Method : SetWidget(WidgetAnnotation) Method
The widget for the field. It contains both the page and location information.
Sets the widget for the field. If any widgets already exist, detach them. Then, add a single widget.
Syntax
'Declaration
 
Public Overloads Sub SetWidget( _
   ByVal widget As WidgetAnnotation _
) 
'Usage
 
Dim instance As Field
Dim widget As WidgetAnnotation
 
instance.SetWidget(widget)
public void SetWidget( 
   WidgetAnnotation widget
)
public: void SetWidget( 
   WidgetAnnotation* widget
) 
public:
void SetWidget( 
   WidgetAnnotation^ widget
) 

Parameters

widget
The widget for the field. It contains both the page and location information.
Exceptions
ExceptionDescription
Thrown when a null widget parameter is passed in.
Thrown when the given widget is already attached to another field or belongs to another document.
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

Is this page helpful?
Yes No
Thanks for your feedback.