Click or drag to resize
RadDocumentEditorInsertInline Method (Inline, DocumentPosition)
Inserts inline element into the document. 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 InsertInline(
	Inline inline,
	DocumentPosition documentPosition
)

Parameters

inline
Type: Telerik.Windows.Documents.ModelInline
The inline element to insert.
documentPosition
Type: Telerik.Windows.DocumentsDocumentPosition
The document position to insert the inline at.

Implements

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