Previous Document Next Document

Object Model Reference : Classes : C : Clipboard : Properties : Clipboard.Valid


Clipboard.Valid

Property Valid As Boolean

Description

Member of Clipboard

The Valid property returns a True or False value associated with presence of valid data in the system Clipboard. Valid information is anything that can be cut or copied into the Clipboard, such as text and graphics selected within a document, or one or more files or folders.

The Valid property returns a read-only value.

VBA example

The following VBA example checks whether there is valid data in the Clipboard. If there is valid data present, it is pasted into the active layer. If there is no valid data in the Clipboard, a message displays in a message box.

Sub ClipboardValid()
 If Clipboard.Valid Then
  ActiveLayer.Paste
 Else
  MsgBox "There is no valid data currently in the Clipboard."
 End If
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.