Version

InsertContent(Int32,NodeBase,String,Boolean,Boolean) Method

Inserts the specified content at the specified document offset.
Syntax
'Declaration
 
Public Sub InsertContent( _
   ByVal documentOffset As Integer, _
   ByVal contentNode As NodeBase, _
   ByRef error As String, _
   Optional ByVal breakParagraphBeforeContent As Boolean, _
   Optional ByVal breakParagraphAfterContent As Boolean _
) 
public void InsertContent( 
   int documentOffset,
   NodeBase contentNode,
   out string error,
   bool breakParagraphBeforeContent,
   bool breakParagraphAfterContent
)

Parameters

documentOffset
Document offset at which to insert the text.
contentNode
Content to insert.
error
If there's an error, this out parameter is set to the error information.
breakParagraphBeforeContent
Indicates whether the inserted content should begin on a new paragraph.
breakParagraphAfterContent
Indicates whether the text immediately after the inserted content should begin on a new paragraph.
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