PeachDrawing.PDF
PdfDisclosureDefinition Class
A region of a page that a reader can open and close: while closed the page shows only what was drawn on the page itself (a heading the reader clicks), and once opened a drawn rectangle covers that heading and what lies beneath it. Nothing reflows: the opened content is laid over the page.
public sealed class PdfDisclosureDefinition
Inheritance System.Object → PdfDisclosureDefinition
| Properties | |
|---|---|
| AccessibleName | What the controls are called to assistive technology, or null for none. |
| ContentBounds | Where the opened region is drawn, in points from the page’s top-left corner with y down. It should cover ToggleBounds, so that the heading is drawn again, in its opened state, as part of the region. |
| InitiallyOpen | Whether the region starts open: it is drawn on the page itself, and ToggleBounds is its heading, which a reader clicks to collapse it. PaintHeading then draws the heading as it looks collapsed, and PaintContent what covers the page below the heading once it is (ContentBounds is that area, below ToggleBounds). |
| PaintContent | Draws the opened region onto a canvas of ContentBounds’s size, with its top-left corner at the origin. |
| PaintHeading | For a region that InitiallyOpen, draws its collapsed heading onto a canvas of ToggleBounds’s size. |
| PixelsPerPoint | The layout units per point PaintContent draws in. |
| ToggleBounds | The heading’s box: what a reader clicks to open the region and, once it is open, to close it. In points from the page’s top-left corner with y down. |