'Declaration Public Property Value As Nullable(Of Integer)
public Nullable<int> Value {get; set;}
Note: Setting this property to a value that is not the midpoint of the range of the TrackBar will cause there to be a different number of values on either half of the track; this will take effect even if the midpoint tickmark is not visible.
Imports Infragistics.Win.UltraWinEditors ' This method sets up the scale trackbar in a similar way to the Microsoft Office2007 ' scaling trackbar. We want this trackbar to essentially have 2 different ranges. The first ' range is from 10 to 100 percent. The second range is from 100 to 500 percent. ' Start by setting the ViewStyle to Office2007. Me.utbScale.ViewStyle = TrackBarViewStyle.Office2007 ' Set MinValue to 10 and MaxValue to 500. Me.utbScale.MinValue = 10 Me.utbScale.MaxValue = 500 ' The middle point of this Trackbar would normally be 250. But we want the middle ' to represent 100. So we can use the MidPointSettings.Value to set the middle to 100. ' Since there is a bigger range to the right of the midpoint, values to the right of the ' midpoint are more densely spaced and values o the left are more sparsely spaced. Me.utbScale.MidpointSettings.Value = 100 ' Make the midpoint tickmark visible. Me.utbScale.MidpointSettings.Visible = Infragistics.Win.DefaultableBoolean.True ' Set SmallChange and LargeChange. Me.utbScale.SmallChange = 10 Me.utbScale.LargeChange = 10 ' Set the Value to 100, so we default to 100%. Me.utbScale.Value = 100
using Infragistics.Win.UltraWinEditors; // This method sets up the scale trackbar in a similar way to the Microsoft Office2007 // scaling trackbar. We want this trackbar to essentially have 2 different ranges. The first // range is from 10 to 100 percent. The second range is from 100 to 500 percent. // Start by setting the ViewStyle to Office2007. this.utbScale.ViewStyle = TrackBarViewStyle.Office2007; // Set MinValue to 10 and MaxValue to 500. this.utbScale.MinValue = 10; this.utbScale.MaxValue = 500; // The middle point of this Trackbar would normally be 250. But we want the middle // to represent 100. So we can use the MidPointSettings.Value to set the middle to 100. // Since there is a bigger range to the right of the midpoint, values to the right of the // midpoint are more densely spaced and values o the left are more sparsely spaced. this.utbScale.MidpointSettings.Value = 100; // Make the midpoint tickmark visible. this.utbScale.MidpointSettings.Visible = Infragistics.Win.DefaultableBoolean.True; // Set SmallChange and LargeChange. this.utbScale.SmallChange = 10; this.utbScale.LargeChange = 10; // Set the Value to 100, so we default to 100%. this.utbScale.Value = 100;
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