Specifies the direction the RasterImageList Control scrolls the displayed items.
[CategoryAttribute("Behavior")][DescriptionAttribute("Specifies the direction the control scrolls the displayed items.")]public Leadtools.Winforms.RasterImageListScrollStyle ScrollStyle {get; set;}
<CategoryAttribute("Behavior")><DescriptionAttribute("Specifies the direction the control scrolls the displayed items.")>Public Property ScrollStyle As Leadtools.Winforms.RasterImageListScrollStyle
[CategoryAttribute("Behavior")][DescriptionAttribute("Specifies the direction the control scrolls the displayed items.")]public:property Leadtools.Winforms.RasterImageListScrollStyle ScrollStyle {Leadtools.Winforms.RasterImageListScrollStyle get();void set ( Leadtools.Winforms.RasterImageListScrollStyle );}
A RasterImageListScrollStyle enumeration that specifies the direction the RasterImageList Control scrolls the displayed items. Default value is RasterImageListScrollStyle.Vertical.
This example fills a RasterImageList control with 10 items. It will then show the difference between vertical and horizontal scrolling styles.
Imports Leadtools.WinFormsImports LeadtoolsImports Leadtools.CodecsImports Leadtools.DrawingPublic Sub RasterImageList_ScrollStyle(ByVal imageList As RasterImageList)' Clear out any items in the image listimageList.Items.Clear()' Create 20 itemsFor i As Integer = 0 To 19' Load the imageDim index As Integer = i + 1Dim item As RasterImageListItem = New RasterImageListItem(Nothing, 1, "Item" & index.ToString())' Select every otehr itemIf (i Mod 2) = 0 Thenitem.Selected = TrueEnd If' Add the item to the image listimageList.Items.Add(item)Next i' 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)End SubPrivate Sub ShowScrollParameters(ByVal imageList As RasterImageList)Dim sb As StringBuilder = 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())End Sub
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());}
|
Products |
Support |
Feedback: ScrollStyle Property (RasterImageList) - Leadtools.WinForms |
Introduction |
Help Version 19.0.2017.3.22
|

Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.