IsReady Property

Summary

Determines whether the Windows clipboard contains an image that can be copied using Paste.

Syntax

C#
C++/CLI
C++
public static bool IsReady { get; } 
public: 
static property bool IsReady { 
   bool get(); 
} 
public:  
   static property bool IsReady 
   { 
      bool get() 
   } 

Property Value

true if the clipboard contains an image that can be copied, false otherwise.

Example

C#
using Leadtools.WinForms; 
using Leadtools; 
using Leadtools.Codecs; 
 
public void RasterClipboard_Paste(RasterImageViewer viewer) 
{ 
   if (RasterClipboard.IsReady) 
   { 
      /// Copy the bitmap from the clipboard  
      viewer.Image = RasterClipboard.Paste(viewer); 
      Console.WriteLine("Paste is Successful"); 
   } 
   else 
   { 
      Console.WriteLine("Paste Failed"); 
   } 
} 

Requirements

Target Platforms

See Also

Reference

RasterClipboard Class

RasterClipboard Members

Help Version 22.0.2023.2.9
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.WinForms Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.