Home/ Reference/ Text

shape.Text.Story

The story object. This is where the real layout properties live.

Signature

shape.Text.Story

Notes

The story object. This is where the real layout properties live.

Python example (runnable)

Requires pywin32. The example assumes app / doc / page / layer are already connected. See Connection & Init
Python
shape = app.ActiveSelectionRange(1)

story = shape.Text.Story           # Story : where the real typesetting properties live
print("Characters: ", story.Characters.Count)
print("Lines: ", story.Lines.Count)
print("Paragraphs: ", story.Paragraphs.Count)

About this section: Text

Text — artistic and paragraph text.

Other entries in this section