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

PropertyTypeDefaultDescription
HorizontalOffsetfloat | NoneNoneHorizontal offset from the left edge of the page in points
VerticalOffsetfloat | NoneNoneVertical offset from the top of the page in points
MaxWidthfloat | NoneNoneMaximum width of the outline in points
MaxHeightfloat | NoneNoneMaximum height of the outline in points
MinWidthfloat | NoneNoneMinimum width of the outline in points
ReservedWidthfloat | NoneNoneReserved width in points
IndentPositionfloat | NoneNoneIndent position for this outline in points
DescendantsCannotBeMovedboolFalseWhether child elements can be moved
LastModifiedTimedatetime | NoneNoneLast modification timestamp

Inherited from CompositeNode / Node

Property / MethodDescription
FirstChild, LastChildFirst and last direct child nodes
GetChildNodes(Type)Recursive type-filtered child search
AppendChildLast(node)Append a child node at the end
for child in outlineIterate direct OutlineElement children
ParentNodeThe Page that contains this outline
DocumentRoot 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