ContainsText Method


ContainsText Method

Location

My.Computer.Clipboard.ContainsText

Syntax

     Dim result As Boolean = My.Computer.Clipboard.ContainsText([format]) 


format (optional; TextDataFormat enumeration)

The specific type of text to be checked for on the clipboard. One of the following System.Windows.Forms.TextDataFormat enumeration values.

Value

Description

Not supplied

Any type of text

CommaSeparatedValue

Comma-separated fields of data in one or more records

Html

HTML format

Rtf

Rich Text Format

UnicodeText

16-bit Unicode character text


Description

The ContainsText method indicates whether the system clipboard contains text data (true) or not (False), for either general text or a specific type of text.

Usage at a Glance

  • This method is only valid in non-server applications.

  • If the format parameter is missing, this method checks for any type of text on the system clipboard.

  • Security restrictions in place for the active user may limit access to the system clipboard.

Related Framework Entries

  • Microsoft.VisualBasic.MyServices.ClipboardProxy.ContainsAudio Method

  • System.Windows.Forms.Clipboard.ContainsAudio Method

See Also

Clipboard Object, ContainsAudio Method, ContainsData Method, ContainsFileDropList Method, ContainsImage Method, GetText Method, SetText Method




Visual Basic 2005(c) In a Nutshell
Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))
ISBN: 059610152X
EAN: 2147483647
Year: 2004
Pages: 712

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net