get-paragraph-format

Generic Function

Package: common-graphics

Arguments: window

Returns the paragraph formatting of the selected text. All paragraphs that are at least partly in the selected text are considered to be selected.

window is a text-edit-pane and is typically a rich-edit-pane (a subclass of text-edit-pane). Note that neither a text-edit-window (typically the parent of a text-edit-pane) nor a rich-edit control are valid arguments to this function. Applying window to a rich-edit control results in a suitable argument, however.

Twelve multiple values are returned:

justification either :left, :center, or :right

numbering-style either :plain or :bullets

top-left-indentation a number in points

body-left-indentation a number in points

right-indentation a number in points

tabs a list of tabstops in points

same-alignment true if all paragraphs have the same alignment

same-numbering-style true if all paragraphs have the same numbering style

same-top-left-indentation true if all paragraphs have the same top left indentation

same-body-left-indentation true if all paragraphs have the same body left indentation

same-right-indentation true if all paragraphs have the same right indentation

same-tabs true if all paragraphs have the same list of tabstops

See set-paragraph-format.

See About Rich Text Editing in Common Graphics in cgide.htm.

Common Graphics and IDE documentation is described in About Common Graphics and IDE documentation in cgide.htm.

The documentation is described in introduction.htm and the index is in index.htm.

Copyright (c) 1998-2000, Franz Inc. Berkeley, CA., USA. All rights reserved.

Created 2000.10.5.