C# 클래스 ICSharpCode.AvalonEdit.Highlighting.HtmlClipboard

Allows copying HTML text to the clipboard.
파일 보기 프로젝트 열기: kjk/kjkpub 1 사용 예제들

공개 메소드들

메소드 설명
CreateHtmlFragment ( TextDocument document, DocumentHighlighter highlighter, ISegment segment, HtmlOptions options ) : string

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.

비공개 메소드들

메소드 설명
BuildHeader ( int startHTML, int endHTML, int startFragment, int endFragment ) : string

Builds a header for the CF_HTML clipboard format.

EscapeHtml ( StringBuilder b, string text, HtmlOptions options ) : void

Escapes text and writes the result to the StringBuilder.

메소드 상세

CreateHtmlFragment() 공개 정적인 메소드

Creates a HTML fragment from a part of a document.
public static CreateHtmlFragment ( TextDocument document, DocumentHighlighter highlighter, ISegment segment, HtmlOptions options ) : string
document ICSharpCode.AvalonEdit.Document.TextDocument The document to create HTML from.
highlighter DocumentHighlighter 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 HtmlOptions The options for the HTML creation.
리턴 string

SetHtml() 공개 정적인 메소드

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.
public static SetHtml ( System.Windows.DataObject dataObject, string htmlFragment ) : void
dataObject System.Windows.DataObject
htmlFragment string
리턴 void