Click or drag to resize
RadDocumentEditorInsertFragment Method (DocumentFragment, DocumentPosition)
Inserts a fragment at specified position. Document selection should be cleared in advance.

Namespace: Telerik.Windows.Documents.Model
Assembly: Telerik.Windows.Documents (in Telerik.Windows.Documents.dll) Version: 2017.3.1018.40 (2017.3.1018.40)
Syntax
public void InsertFragment(
	DocumentFragment documentFragment,
	DocumentPosition documentPosition
)

Parameters

documentFragment
Type: Telerik.Windows.Documents.ModelDocumentFragment
The fragment to insert.
documentPosition
Type: Telerik.Windows.DocumentsDocumentPosition
The document position to insert the fragment at.

Implements

IDocumentEditorInsertFragment(DocumentFragment, DocumentPosition)
Exceptions
ExceptionCondition
InvalidOperationExceptionThrown when there is selection in the document.
ArgumentNullExceptionThrown when documentFragment or documentPosition is null.
Remarks
Document selection should be cleared before calling this method, otherwise exception may be thrown.
See Also