Version

Insert Method (FormattedTextParagraphCollection)

Inserts a paragraph with the specified text and returns the FormattedTextParagraph representing the new paragraph.
Syntax
'Declaration
 
Public Function Insert( _
   ByVal index As System.Integer, _
   ByVal paragraphText As System.String _
) As FormattedTextParagraph
public FormattedTextParagraph Insert( 
   System.int index,
   System.string paragraphText
)

Parameters

index
The zero-based index in the collection where the paragraph should be inserted.
paragraphText
The text in the paragraph.

Return Value

The FormattedTextParagraph representing the new paragraph.
Exceptions
ExceptionDescription
System.ArgumentOutOfRangeExceptionindex is less than zero or greater than the number of paragraphs in the collection.
Requirements

Target Platforms: Windows 8.1, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

View on GitHub