Version

SetText Method (ParagraphNode)

Clears the existing content of the paragraph and sets the new content to be the specified text.
Syntax
'Declaration
 
Public Sub SetText( _
   ByVal text As String _
) 
public void SetText( 
   string text
)

Parameters

text
New text of the paragraph.
Remarks

SetText method removes existing content of the paragraph and sets the specified text as the new content of the paragraph. Note that if the paragraph already has runs, the last run will be used for the new text. This is done to retain the character settings that the last run may have been using.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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