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




Gets or sets the flow of the thumbnail images.

Syntax

Visual Basic (Declaration) 
Public Property ThumbsDirection As ThumbnailsDirection
Visual Basic (Usage)Copy Code
Dim instance As WebThumbnailViewer
Dim value As ThumbnailsDirection
 
instance.ThumbsDirection = value
 
value = instance.ThumbsDirection
C# 
public ThumbnailsDirection ThumbsDirection {get; set;}
Managed Extensions for C++ 
public: __property ThumbnailsDirection get_ThumbsDirection();
public: __property void set_ThumbsDirection( 
   ThumbnailsDirection value
);
C++/CLI 
public:
property ThumbnailsDirection ThumbsDirection {
   ThumbnailsDirection get();
   void set (ThumbnailsDirection value);
}

Return Value

The flow of the thumbnail images.

Example

This example changes the layout of the WebThumbnailViewer to the required rows x columns.

Visual BasicCopy Code
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
C#Copy Code
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); 
}
JScriptCopy Code
function WebThumbnailViewer_ChangeLayout(webThumbnailViewer, rows/*ex. 2*/, columns/*ex. 4*/) 

   webThumbnailViewer.setColumns(columns); 
   webThumbnailViewer.setRows(rows); 
   webThumbnailViewer.setLayoutDirection(LayoutDirection.Vertical); 
   webThumbnailViewer.setThumbsDirection(ThumbnailsDirection.TopToBottom); 
}

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