Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Excerpt

To insert a paragraph in a section of your document, use one of the following methods. All of the methods insert a parapraph at a specified point in an Element. An Element object represents an editable region in a document, such as a section or a table cell. The document itself is an Element (the Document class extends Element). Later we will add a paragraph to a Document object.

 

  • Code Block
    Paragraph Element.InsertParagraphAfter(NamedStyle style)

    Inserts an empty paragraph at the end of the specified Element. This method applies the specified named style to the paragraph.

  • Code Block
    Paragraph Element.InsertParagraphAfter(NamedStyle style, ParagraphFormatting props)

    Inserts an empty paragraph at the end of the specified Element. This method applies a specified named style and a set of formatting properties to the paragraph. The formatting properties will override the style's properties

  • Code Block
    Paragraph Element.InsertParagraphBefore(NamedStyle style)

    Inserts an empty paragraph at the beginning of the specified Element. This method applies the specified named style to the paragraph.

  • Code Block
    Paragraph Element.InsertParagraphBefore(NamedStyle style, ParagraphFormatting props)

    Inserts an empty paragraph at the beginning of the specified Element. This method applies a specified named style and a set of formatting properties to the paragraph. The formatting properties will override the style's properties

  • Code Block
    Paragraph Position.InsertParagraph(NamedStyle style)

    Inserts an empty paragraph at a specified position within an Element. A Position object represents a cursor. This method applies the specified named style to the paragraph.

...