←Select platform

HasImage Property

Summary

Gets a value that indicates if the viewer currently has an image (single item mode).

Syntax
C#
C++/CLI
public virtual bool HasImage { get; } 
public:  
   virtual property bool HasImage 
   { 
      bool get() 
   } 

Property Value

true if the viewer currently has an image; otherwise, false.

Remarks

The viewer has an image when the value of ImageSize is not empty (0,0). In other words, if any of ImageUrl, Image or SvgDocument has been set to a valid value or if the user set the value of ImageSize directly.

This is a helper property for applications that uses ImageViewer in single item mode. It is a shortcut to ActiveItem. For more information, refer to Image Viewer in Single Item Mode.

Requirements

Target Platforms

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

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