Method Remove
- Namespace
- BitMiracle.Docotic.Pdf
- Assembly
- BitMiracle.Docotic.Pdf.dll
Remove()
Removes this widget from the document.
public void Remove()
Remarks
The widget is removed from the document even if it is not associated with a page (that
is, if GetOwnerPageIndex() returns null). If the widget is a PdfControl, it is also removed from the document's AcroForm.
If the widget belongs to a page, it is also removed from that page's Widgets collection.
If the widget is a PdfControl that belongs to a page, it is also removed from the controls returned by GetControls().
This method modifies the Widgets collection and the controls returned by GetControls() on the owning page, if any. Do not call this method while iterating over these collections.
Do not use the widget after removing it from its document.
You can also remove widgets using the RemoveAt(int) and Clear() methods of a page's Widgets collection.