How do I delete the current page in PDFView control?

Q: Does the preview class deliver an actual position of the selected
page? E.g. _pdfview.SelectedPageNumber

We would like to delete a page selected by the user.
I couldn’t find an example in your samples.
----------------------------
A: You have couple of options:

- You could simply call pdfview.DeletePages() which will bring a built-
in dialog to delete the current (or specific pages).
- In case the built-in dialog does not meet your requirements you can
implement your own delte page dialog. The delete operation would look
along the following lines:

PDFDoc doc = pdfview.GetDoc();
doc.Lock();
doc.PageRemove(doc.GetPageIterator(pdfview.GetCurrentPage()));
doc.Unlock();
pdfview.UpdatePageLayout();