메소드 | 설명 | |
---|---|---|
CopyToClipboard ( string html, string plainText ) : void |
Clears clipboard and sets the given HTML and plain text fragment to the clipboard, providing additional meta-information for HTML.
|
|
CreateDataObject ( string html, string plainText ) : |
Create DataObject with given html and plain-text ready to be used for clipboard or drag and drop. Windows Clipboard works with UTF-8 Unicode encoding while .NET strings use with UTF-16 so for clipboard to correctly decode Unicode string added to it from .NET we needs to be re-encoded it using UTF-8 encoding. Builds the CF_HTML header correctly for all possible HTMLs |
메소드 | 설명 | |
---|---|---|
GetByteCount ( StringBuilder sb, int start, int end = -1 ) : int |
Calculates the number of bytes produced by encoding the string in the string builder in UTF-8 and not .NET default string encoding.
|
|
GetHtmlDataString ( string html ) : string |
Generate HTML fragment data string with header that is required for the clipboard.
|
public static CopyToClipboard ( string html, string plainText ) : void | ||
html | string | a html fragment |
plainText | string | the plain text |
리턴 | void |
public static CreateDataObject ( string html, string plainText ) : |
||
html | string | a html fragment |
plainText | string | the plain text |
리턴 |