Property

[Method]

Event

 

 

DeleteParagraph

Deletes a specified number of paragraphs from the current input caret.

Syntax

    HRESULT DeleteParagraph(
    int num
    );

Parameters

num

[in] Number of paragraphs to delete.

Return Values

0 (always)

Remarks

  1. If the caret is inside a cell, this method deletes only the paragraphs in the cell.
  2. The deletion stops if it encounters a table. Paragraphs after the table are not deleted.

Sample Codes

VBScript

function TestBtn_OnClick
dim object
set object = document.editForm
object.wec.DeleteParagraph 4 ' Deletes 4 paragraphs from the current cursor.
end function