# PageBreakNode
Class Inherits Node
## About
`PageBreakNode` starts a new page in paginated output. The editor shows a dashed "Page Break" marker so the break can be selected, moved, and deleted like other content.
## Methods
| Name | Parameters | Return Type | Description |
| --- | :---: | :---: | --- |
| CanImportHTML | element As GraffitiProEditor.HTMLSupport.HTMLElement | Boolean | Returns whether the supplied HTML element is an empty page-break marker. |
| Constructor | (None) | (None) | Creates a new page-break node. |
| Duplicate | (None) | Node | Returns an independent copy of this node and its configurable state. |
| FromHTML | element As GraffitiProEditor.HTMLSupport.HTMLElement | Boolean | Imports a page-break marker from an HTML element. |
| HTMLImportPriority | element As GraffitiProEditor.HTMLSupport.HTMLElement | Integer | Returns this node type's priority when resolving an HTML element importer. |
| HTMLTags | (None) | String | Returns the HTML tag names supported by this node type. |
| InspectorSections | (None) | InspectorSection | Returns the page-break properties exposed by the inspector. |
| LocalizeToolbarItem | strings As GraffitiProEditor.Editor | (None) | Sets this node type's toolbar item text from the supplied editor's localization properties. The editor calls it when the type is registered, when the editor opens, and when a locale pack is applied to the editor. A custom node type can override it to localize its own toolbar item. |
| PerformToolbarAction | editor As Editor <br> selectedItem As DesktopMenuItem | (None) | Handles activation of this node type's main-toolbar item. |
| PreferredHeight | g As Graphics <br> availableWidth As Double | Double | Returns the preferred node height for the available width. |
| Render | g As Graphics <br> bounds As Rect <br> selected As Boolean | (None) | Draws the editor-only page-break marker. |
| ToHTML | (None) | String | Returns an HTML representation of this content. |
| ToMarkdown | (None) | String | Returns a Markdown representation of this content. |
| TypeName | (None) | String | Returns the display name for this node type. |
## Notes
A page break has no editable content or visible appearance in output, so its inspector shows only accessibility settings.
### HTML and Markdown
HTML export writes an empty `div` with the `page-break` class and `break-after: page`, which browsers honor when printing. HTML import accepts an empty `div` with that class or with a `break-before`, `break-after`, `page-break-before`, or `page-break-after` value of `page` or `always`.
Markdown has no page break, so Markdown export writes the same HTML, which Markdown import preserves.
### JSON Format
A page break adds no fields to the common `Node` format. Its type is `pagebreak`.
### Pagination
`Print`, `ToPictures`, `ToRasterPDF`, and `ToVectorPDF` move the node after a break to the top of the next page. In output the break draws nothing and takes no height. A break at the start of a page, or one that ends the document, adds no blank page. Single-picture output such as `ToPicture` ignores breaks.
## Examples
Register a page-break prototype before inserting, importing, or restoring page breaks.
### Start a New Page
```xojo
Editor.NodeTypes.Add(New GraffitiProEditor.PageBreakNode)
Editor.AddNode(New GraffitiProEditor.TextNode("Summary"))
Editor.AddNode(New GraffitiProEditor.PageBreakNode)
Editor.AddNode(New GraffitiProEditor.TextNode("Details start on the next page."))
```