📄 readme.htm
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>ReadMe</title>
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
<meta content="Microsoft FrontPage 5.0" name="GENERATOR">
<meta content="FrontPage.Editor.Document" name="ProgId">
<meta content="Microsoft Visual Studio.NET 7.0" name="Originator">
</head>
<body>
<h1>
Windows Forms: Use the Clipboard</h1>
<p>This sample shows you how to place and retrieve items from the
Clipboard in multiple formats. It demonstrates the primary properties
and methods used when using the Clipboard.</p>
<h2>Featured Highlights:</h2>
The text "The Clipboard is Cool!" is provided in multiple formats (as
class variables).<br>
<br>
The text can be copied to the Clipboard in a single format, or stored in
the Clipboard as multiple formats concurrently, all from the <br>
"Edit" menu.<br>
<br>
An image can also be loaded and stored in the Clipboard from the "Edit"
menu.<br>
<br>
The "Paste As" menu is dynamically generated from the various formats
that are stored in the Clipboard.<br>
<br>
Items can be copied to the clipboard from other windows applications,
and pasted into the sample form. The opposite is also true.<H2>Requirements:</H2>
<p>Requires Microsoft Visual Studio.NET and Windows 2000 or Windows XP.</p>
<h2>Running the Sample:</h2>
<p>To use this sample, run the application and then explore the "Edit"
menu options. Select "Edit -> Copy Text As -> RTF", as<br>
an example. Then select "Edit -> Paste As -> Rich Text Format". You can
then examine how the text is pasted differently into a <br>
RichTextBox and a TextBox.<br>
<br>
Then try the same with HTML. Note that the RichTextBox does not support
the HTML format. Try to paste the HTML into an HTML editor <br>
(a Visual Studio .NET HTML document works well). See how it is pasted
correctly.<br>
<br>
Then try "Edit -> Paste As -> All Formats", and notice that multiple
versions of the same text are stored on the Clipboard. You can now paste<br>
as Text, RTF, HTML, and a proprietary XML format.</p>
<h3>See also</h3>
<p>
<a href="ms-help://MS.VSCC/MS.MSDNVS/cpref/html/frlrfSystemWindowsFormsClipboardMembersTopic.htm">
Clipboard Class </a> <a href="ms-help://MS.VSCC/MS.MSDNVS/vbcon/html/vbtskplacingdataonclipboard.htm">Placing
data on the Clipboard</a>
<a href="ms-help://MS.VSCC/MS.MSDNVS/vbcon/html/vbtskretrievinginformationfromclipboard.htm">
Retrieve Information from the Clipboard</a></p>
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -