Darwin Help

Back to Index

Paragraph

Class Paragraph - holds contents of a paragraph of text

Calling Sequence  Paragraph(content1,...)
Paragraph(indent,content1,...)
Return Type  Paragraph
Selectors
NameTypeDescription

indent integerthe integer indentation value
content_i {string,structure}the text content of the Paragraph
Methods HTMLC, LaTeXC, print, string, type
Synopsis The Paragraph structure holds text that is expected to be laid out as a paragraph. The integer value indent specifies the number of blank positions to be added at the beginning of the first line. If the indent value is negative, then the first line is not indented, but the rest of the lines will be indented by -indent. Paragraphs are typically part of Documents or Descriptions or any place where text must be formatted. When a Paragraph is converted to a string, each content_i is converted to a string, all concatenated together and properly broken into lines not exceeding the value of the interface variable screenwidth. A newline character is always added at the end of the last line of the converted Paragraph. Any newlines or tab characters in the contents are changed into spaces.
Examples
> p := Paragraph( 5, 'This text is indented 5 spaces' );
p := Paragraph(5,This text is indented 5 spaces)
> print(p);
     This text is indented 5 spaces


See also Code,   Color,   Copyright,   Document,   HTML,   HyperLink,   Indent,   LastUpdatedBy,   latex,   List,   PostscriptFigure,   print,   Roman,   RunDarwinSession,   screenwidth,   Table,   TT,   View