Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.5.5
|
Leadtools.Web.Controls Namespace > WebThumbnailViewer Class : ThumbsDirection Property |
public ThumbnailsDirection ThumbsDirection {get; set;}
'Declaration Public Property ThumbsDirection As ThumbnailsDirection
'Usage Dim instance As WebThumbnailViewer Dim value As ThumbnailsDirection instance.ThumbsDirection = value value = instance.ThumbsDirection
public: property ThumbnailsDirection ThumbsDirection { ThumbnailsDirection get(); void set ( ThumbnailsDirection value); }
This example changes the layout of the WebThumbnailViewer to the required rows x columns.
Imports Leadtools Imports Leadtools.Codecs Imports Leadtools.Web.Controls Public Sub WebThumbnailViewer_ChangeLayout(ByVal webThumbnailViewer As WebThumbnailViewer, _ ByVal rows As Integer, ByVal columns As Integer) 'ex. 2, 4 webThumbnailViewer.Columns = columns webThumbnailViewer.Rows = rows webThumbnailViewer.LayoutDirection = LayoutDirection.Vertical webThumbnailViewer.ThumbsDirection = ThumbnailsDirection.TopToBottom webThumbnailViewer.Add("Resources\multipage.tif", 1, -1) End Sub
using Leadtools; using Leadtools.Codecs; using Leadtools.Web.Controls; public void WebThumbnailViewer_ChangeLayout(WebThumbnailViewer webThumbnailViewer, int rows/*ex. 2*/, int columns/*ex. 4*/) { webThumbnailViewer.Columns = columns; webThumbnailViewer.Rows = rows; webThumbnailViewer.LayoutDirection = LayoutDirection.Vertical; webThumbnailViewer.ThumbsDirection = ThumbnailsDirection.TopToBottom; webThumbnailViewer.Add(@"Resources\multipage.tif", 1, -1); }
/// <!--Leadtools.Web.Controls.WebThumbnailViewer.Add--> /// <!--Leadtools.Web.Controls.WebThumbnailViewer.Add--> /// <!--Leadtools.Web.Controls.WebThumbnailViewer.ThumbsDirection--> /// <!--Leadtools.Web.Controls.WebThumbnailViewer.ThumbsDirection--> function WebThumbnailViewer_ChangeLayout(webThumbnailViewer, rows/*ex. 2*/, columns/*ex. 4*/) { webThumbnailViewer.setColumns(columns); webThumbnailViewer.setRows(rows); webThumbnailViewer.setLayoutDirection(LayoutDirection.Vertical); webThumbnailViewer.setThumbsDirection(ThumbnailsDirection.TopToBottom); }