Méthode | Description | |
---|---|---|
CreateHtmlFragment ( |
Creates a HTML fragment from a part of a document.
|
|
SetHtml ( System.Windows.DataObject dataObject, string htmlFragment ) : void |
Sets the TextDataFormat.Html on the data object to the specified html fragment. This helper methods takes care of creating the necessary CF_HTML header.
|
Méthode | Description | |
---|---|---|
BuildHeader ( int startHTML, int endHTML, int startFragment, int endFragment ) : string |
Builds a header for the CF_HTML clipboard format.
|
|
EscapeHtml ( StringBuilder b, string text, |
Escapes text and writes the result to the StringBuilder.
|
public static CreateHtmlFragment ( |
||
document | The document to create HTML from. | |
highlighter | The highlighter used to highlight the document. | |
segment | ISegment | The part of the document to create HTML for. You can pass null to create HTML for the whole document. |
options | The options for the HTML creation. | |
Résultat | string |
public static SetHtml ( System.Windows.DataObject dataObject, string htmlFragment ) : void | ||
dataObject | System.Windows.DataObject | |
htmlFragment | string | |
Résultat | void |