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




ImageGear.Formats.Pdf Assembly > ImageGear.Formats.PDF.Forms Namespace > Field Class > AddWidget Method : AddWidget(WidgetAnnotation) Method
The widget to add to the field. Contains both the page and location information.
Adds a widget to the field.
Syntax
'Declaration
 
Public Overloads Sub AddWidget( _
   ByVal widget As WidgetAnnotation _
) 
'Usage
 
Dim instance As Field
Dim widget As WidgetAnnotation
 
instance.AddWidget(widget)
public void AddWidget( 
   WidgetAnnotation widget
)
public: void AddWidget( 
   WidgetAnnotation* widget
) 
public:
void AddWidget( 
   WidgetAnnotation^ widget
) 

Parameters

widget
The widget to add to the field. 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
Method adds the given widget to the Widgets collection of Field object. The attachment of this widget to a field is performed also.
Attempting to add a widget that is already attached to another field will result in an exception.
See Also

Reference

Field Class
Field Members
Overload List

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