InsertParagraph Method (styleName)

Pageflex Document Action API

Pageflex Document Action API InsertParagraph Method (styleName)
Namespaces > Pageflex.Scripting > Range > InsertParagraph(String)
Inserts a paragraph of the specified style.
Syntax
C# Visual Basic Managed C++
public void InsertParagraph (
	string styleName
)
Public Sub InsertParagraph ( _
	styleName As String _
)
public:
void InsertParagraph (
	String^ styleName
)
Parameters
styleName (String)
Name of the ParagraphStyle to use for the new paragraph.
Remarks
Deletes any current range content and inserts a paragraph boundary in its place. Afterwards the ParagraphStyle of the paragraph to the left will be the paragraph style of the paragraph containing the start of the original range. The style of the paragraph to the right will be styleName. Both range endpoints will be at the start of the new paragraph.
Exceptions
Exception Condition
ParagraphStyleNotFoundException The specified paragraph style is not defined in the current document.
RangeNotEditableException Inserting a paragraph inside a variable, table of contents, or page number is not permitted.
ArgumentNullException The value supplied for styleName was nullNothingnullptr.
StaleScriptingObjectException This object's associated internal object no longer exists.

Assembly: PFScript Version: 8.0.7.1407 (Module: PFScript)