Click or drag to resize
CodeFormatterGetFormattedFragment Method
Creates fragment containing formatted code block.

Namespace: Telerik.Windows.Documents.Model.Code
Assembly: Telerik.Windows.Documents (in Telerik.Windows.Documents.dll) Version: 2018.1.220.40 (2018.1.220.40)
Syntax
public DocumentFragment GetFormattedFragment(
	string code,
	CodeFormattingSettings settings
)

Parameters

code
Type: SystemString
The code.
settings
Type: Telerik.Windows.Documents.Model.CodeCodeFormattingSettings
The settings.

Return Value

Type: DocumentFragment
DocumentFragments with formatted code block
See Also