Click or drag to resize
RadRichTextEditorInsertCodeBlock Method
Inserts code block into the document at caret position. If caret position is in code block, replaces the current code block.

Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.RichTextEditor (in Telerik.WinControls.RichTextEditor.dll) Version: 2018.2.619.40 (2018.2.619.40)
Syntax
public void InsertCodeBlock(
	string code,
	CodeFormattingSettings settings
)

Parameters

code
Type: SystemString
settings
Type: Telerik.WinForms.Documents.Model.CodeCodeFormattingSettings
See Also