ImageGear v26.3 - Updated
ImageGear.Formats.Pdf Assembly / ImageGear.Formats.PDF.Forms Namespace / Field Class / AddWidget Method / AddWidget(ImGearPDFPage,ImGearPDFFixedRect) Method
The page to insert the widget on.
The location on the page to create the widget.




In This Topic
    AddWidget(ImGearPDFPage,ImGearPDFFixedRect) Method
    In This Topic
    Creates and adds a widget to the field.
    Syntax
    'Declaration
     
    Public Overloads Function AddWidget( _
       ByVal page As ImGearPDFPage, _
       ByVal rect As ImGearPDFFixedRect _
    ) As WidgetAnnotation
    'Usage
     
    Dim instance As Field
    Dim page As ImGearPDFPage
    Dim rect As ImGearPDFFixedRect
    Dim value As WidgetAnnotation
     
    value = instance.AddWidget(page, rect)
    public WidgetAnnotation AddWidget( 
       ImGearPDFPage page,
       ImGearPDFFixedRect rect
    )
    public: WidgetAnnotation* AddWidget( 
       ImGearPDFPage* page,
       ImGearPDFFixedRect* rect
    ) 
    public:
    WidgetAnnotation^ AddWidget( 
       ImGearPDFPage^ page,
       ImGearPDFFixedRect^ rect
    ) 

    Parameters

    page
    The page to insert the widget on.
    rect
    The location on the page to create the widget.

    Return Value

    The newly created widget that was added.
    Exceptions
    ExceptionDescription
    Thrown when an error occurs during method execution. Additional information about the error may be found in the message of the exception. Commonly occurs when the page or rect argument is null.
    See Also