Outline — Aspose.Note FOSS Python API Reference
Class: Outline
Package: aspose.note
Import: from aspose.note import Outline
Inherits: CompositeNode
Outline is a positional container that groups OutlineElement nodes within a Page. Each outline has an optional position and size on the page expressed in points.
Properties
| Property | Type | Default | Description |
|---|---|---|---|
HorizontalOffset | float | None | None | Horizontal offset from the left edge of the page in points |
VerticalOffset | float | None | None | Vertical offset from the top of the page in points |
MaxWidth | float | None | None | Maximum width of the outline in points |
MaxHeight | float | None | None | Maximum height of the outline in points |
MinWidth | float | None | None | Minimum width of the outline in points |
ReservedWidth | float | None | None | Reserved width in points |
IndentPosition | float | None | None | Indent position for this outline in points |
DescendantsCannotBeMoved | bool | False | Whether child elements can be moved |
LastModifiedTime | datetime | None | None | Last modification timestamp |
Inherited from CompositeNode / Node
| Property / Method | Description |
|---|---|
FirstChild, LastChild | First and last direct child nodes |
GetChildNodes(Type) | Recursive type-filtered child search |
AppendChildLast(node) | Append a child node at the end |
for child in outline | Iterate direct OutlineElement children |
ParentNode | The Page that contains this outline |
Document | Root document |
Accept(visitor) | Dispatch VisitOutlineStart / VisitOutlineEnd |
Usage Example
from aspose.note import Document, Page, Outline, OutlineElement, RichText
doc = Document("MyNotes.one")
for page in doc.GetChildNodes(Page):
for outline in page.GetChildNodes(Outline):
print(f"Outline at ({outline.HorizontalOffset}, {outline.VerticalOffset})")
for oe in outline.GetChildNodes(OutlineElement):
for rt in oe.GetChildNodes(RichText):
print(f" {rt.Text}")See Also
- OutlineElement: direct child of Outline
- Page: parent of Outline
- CompositeNode: base class
- Aspose.Note FOSS Python API Reference home