Values for the RasterImageList.ScrollStyle property.
public enum RasterImageListScrollStyle public enum class RasterImageListScrollStyle : public System.Enum, System.IComparable, System.IConvertible, System.IFormattable public:enum class RasterImageListScrollStyle sealed
| Value | Member | Description |
|---|---|---|
| 0 | Horizontal | The control has a horizontal scrollbar. |
| 1 | Vertical | The control has a vertical scrollbar. |
using Leadtools.WinForms;using Leadtools;using Leadtools.Codecs;using Leadtools.Drawing;public void RasterImageList_ScrollStyle(RasterImageList imageList){// Clear out any items in the image listimageList.Items.Clear();// Create 20 itemsfor (int i = 0; i < 20; i++){// Load the imageint index = i + 1;RasterImageListItem item = new RasterImageListItem(null, 1, "Item" + index.ToString());// Select every otehr itemif ((i % 2) == 0)item.Selected = true;// Add the item to the image listimageList.Items.Add(item);}// Set vertical scrolling styleimageList.ScrollStyle = RasterImageListScrollStyle.Vertical;// Scroll a couple of lines downimageList.ScrollItems(2);// Show the scroll parameters of the controlShowScrollParameters(imageList);// Switch to horizontal scrolling styleimageList.ScrollStyle = RasterImageListScrollStyle.Horizontal;// Show the scroll parameters of the controlShowScrollParameters(imageList);}private void ShowScrollParameters(RasterImageList imageList){StringBuilder sb = new StringBuilder();sb.AppendFormat("Full Visible Rows: {0}{1}", imageList.FullVisibleRows, Environment.NewLine);sb.AppendFormat("Visible Rows: {0}{1}", imageList.VisibleRows, Environment.NewLine);sb.AppendFormat("Full Visible Columns: {0}{1}", imageList.FullVisibleColumns, Environment.NewLine);sb.AppendFormat("Visible Columns:{0}{1}", imageList.VisibleColumns, Environment.NewLine);sb.AppendFormat("TotalRows: {0}{1}", imageList.TotalRows, Environment.NewLine);sb.AppendFormat("TotalColumns: {0}{1}", imageList.TotalColumns, Environment.NewLine);sb.AppendFormat("TopIndex: {0}{1}", imageList.TopIndex, Environment.NewLine);MessageBox.Show(sb.ToString());}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
