Computer.Clipboard Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets an object that provides methods for manipulating the Clipboard.
public:
property Microsoft::VisualBasic::MyServices::ClipboardProxy ^ Clipboard { Microsoft::VisualBasic::MyServices::ClipboardProxy ^ get(); };
public Microsoft.VisualBasic.MyServices.ClipboardProxy Clipboard { get; }
member this.Clipboard : Microsoft.VisualBasic.MyServices.ClipboardProxy
Public ReadOnly Property Clipboard As ClipboardProxy
Property Value
The My.Computer.Clipboard
object for the computer.
Examples
This example reads text from the Clipboard into the string textOnClipboard
.
Dim textOnClipboard As String = My.Computer.Clipboard.GetText()
This example fails if there is no text on the Clipboard.
Remarks
This property provides easy access to the ClipboardProxy object.
This property is available only for non-server applications.
Availability by Project Type
Project type | Available |
---|---|
Windows Forms Application | Yes |
Class Library | Yes |
Console Application | Yes |
Windows Forms Control Library | Yes |
Web Control Library | No |
Windows Service | Yes |
Web Site | No |
Applies to
See also
Tee yhteistyötä kanssamme GitHubissa
Tämän sisällön lähde on GitHubissa, jossa voit myös luoda ja tarkastella ongelmia ja pull-pyyntöjä. Katso lisätietoja osallistujan oppaasta.