CHtmlClipboard.CopyToClipboard  
 
Class: CHtmlClipboard
(Method)


 
Declaration
 
C#
public
static void CopyToClipboard(string sHtml)
or:
public static void CopyToClipboard(string sHtml, string sTitle)
 
 
Visual Basic
Public Shared Sub CopyToClipboard(sHtml As String)
or:
Public Shared Sub CopyToClipboard(sHtml As String, sTitle As String)
 
 
Description
A static method that copies HTML data (text and format tags) to the clipboard.
 
Parameters
sHtml : HTML data.
   
sTitle : New title for the HTML document. Optional.
 
Example
 
// Copy a text string that contains HTML to the clipboard
string sHtml = "The last word is in <b>bold</b>.";
CHtmlClipboard
.CopyToClipboard(sHtml);


There is a longer example available on this page.

 
 

< Go Back
 
 
SamLogic