Version

HorizontalScrollProperties Property

Gets the object which can retrive and set information about the horizontal scroll bar.
Syntax
'Declaration
 
Public ReadOnly Property HorizontalScrollProperties As ScrollProperties
public ScrollProperties HorizontalScrollProperties {get;}

Property Value

A ScrollProperties instance which controls the horizontal scroll bar.
Example
The following code demonstrates how to manually display and control the scroll bars of the UltraPanel.

Imports System.Windows.Forms
Imports Infragistics.Win


' Make sure AutoScroll is False so the scroll bar properties can be set manually.
Me.UltraPanel1.AutoScroll = False

' Show and disabled the horizontal scroll bar
Me.UltraPanel1.HorizontalScrollProperties.Visible = True
Me.UltraPanel1.HorizontalScrollProperties.Enabled = False

' Show the vertical scroll bar
Me.UltraPanel1.VerticalScrollProperties.Visible = True

' Set the value range for the vertical scroll bar to go from 0 to 200
Me.UltraPanel1.VerticalScrollProperties.Minimum = 0
Me.UltraPanel1.VerticalScrollProperties.Maximum = 200

' Set the small change to 5. This will be used when the scroll arrows are
' pressed at either end of the scroll track.
Me.UltraPanel1.VerticalScrollProperties.SmallChange = 5

' Set the large change to 100. This will be used when clicking the scroll
' track on either side of the scroll thumb.
Me.UltraPanel1.VerticalScrollProperties.LargeChange = 100

' Move the vertical scroll thumb so its position is 50.
Me.UltraPanel1.VerticalScrollProperties.Value = 50
using System.Windows.Forms;
using Infragistics.Win;

// Make sure AutoScroll is False so the scroll bar properties can be set manually.
this.ultraPanel1.AutoScroll = false;

// Show and disabled the horizontal scroll bar
this.ultraPanel1.HorizontalScrollProperties.Visible = true;
this.ultraPanel1.HorizontalScrollProperties.Enabled = false;

// Show the vertical scroll bar
this.ultraPanel1.VerticalScrollProperties.Visible = true;

// Set the value range for the vertical scroll bar to go from 0 to 200
this.ultraPanel1.VerticalScrollProperties.Minimum = 0;
this.ultraPanel1.VerticalScrollProperties.Maximum = 200;

// Set the small change to 5. This will be used when the scroll arrows are
// pressed at either end of the scroll track.
this.ultraPanel1.VerticalScrollProperties.SmallChange = 5;

// Set the large change to 100. This will be used when clicking the scroll
// track on either side of the scroll thumb.
this.ultraPanel1.VerticalScrollProperties.LargeChange = 100;

// Move the vertical scroll thumb so its position is 50.
this.ultraPanel1.VerticalScrollProperties.Value = 50;
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also