AvalonEdit
CreateHtmlFragment Method (document, highlighter, segment, options)
NamespacesICSharpCode.AvalonEdit.HighlightingHtmlClipboardCreateHtmlFragment(IDocument, IHighlighter, ISegment, HtmlOptions)
Creates a HTML fragment from a part of a document.
Declaration Syntax
C#Visual BasicVisual C++
public static string CreateHtmlFragment(
	IDocument document,
	IHighlighter highlighter,
	ISegment segment,
	HtmlOptions options
)
Public Shared Function CreateHtmlFragment ( _
	document As IDocument, _
	highlighter As IHighlighter, _
	segment As ISegment, _
	options As HtmlOptions _
) As String
public:
static String^ CreateHtmlFragment(
	IDocument^ document, 
	IHighlighter^ highlighter, 
	ISegment^ segment, 
	HtmlOptions^ options
)
Parameters
document (IDocument)
The document to create HTML from.
highlighter (IHighlighter)
The highlighter used to highlight the document. null is valid and will create HTML without any highlighting.
segment (ISegment)
The part of the document to create HTML for. You can pass null to create HTML for the whole document.
options (HtmlOptions)
The options for the HTML creation.
Return Value
HTML code for the document part.

Assembly: ICSharpCode.AvalonEdit (Module: ICSharpCode.AvalonEdit.dll) Version: 5.0.0.4238