edit (@examples.testText);
wp.getRightMargin ()
» 0
The right margin defaults to 0, which means it is at the right edge of the ruler.
edit (@examples.testText)
» true
Drag the right margin marker in the editing window to the 5-inch mark. Type and execute:
wp.getRightMargin ()
» 120
The example returns the margin in pixels (approximately 1-2/3 inches to the left of the right end of the ruler.