Leadtools.Web Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.10.31
ViewerID Property
See Also 
Leadtools.Web.Controls Namespace > WebThumbnailViewer Class : ViewerID Property




Gets or sets the ID of the WebImageViewer used to display the selected thumbnail.

Syntax

Visual Basic (Declaration) 
Public Property ViewerID As String
Visual Basic (Usage)Copy Code
Dim instance As WebThumbnailViewer
Dim value As String
 
instance.ViewerID = value
 
value = instance.ViewerID
C# 
public string ViewerID {get; set;}
Managed Extensions for C++ 
public: __property string* get_ViewerID();
public: __property void set_ViewerID( 
   string* value
);
C++/CLI 
public:
property String^ ViewerID {
   String^ get();
   void set (String^ value);
}

Return Value

The ID of the WebImageViewer used to display the selected thumbnail.

Example

Refer to Add

Remarks

You can connect a WebImageViewer control to the WebThumbnailViewer control by setting this property to the required Viewer ID. After that any changes to the WebImageViewer's image will be reflected automatically in the selected thumbnail and any selected thumbnail's image will be loaded into the WebImageViewer control.

If this property is not set to a WebImageViewer ID you have to update the WebImageViewer control manually if the SelectedIndex property changes. Do this by handling the javascript version of the SelectedIndexChanged event and calling the javascript version of the OpenImageUrl method. Also you will be responsible for updating the selected thumbnail image, if the image loaded in the WebImageViewer changes by an image processing command being applied to it. Do that by handling the javascript event ImageChanged and calling the javascript method Update and passing the ID of the WebImageViewer that has had its image changed.

For more information refer to the tutorial, Updating WebControls Manually.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also