RadScrollBar
Implements the basic functionality for the scrolling.
This class can be used both for horizontal and for vertical scrolling through its property ScrollType. Only the specialized children are put in the Toolbox: RadHScrollBar and RadVScrollBar.
To adjust the value range of the scroll bar control set the Minimum and Maximum properties. To adjust the distance the scroll thumb moves, set the SmallChange and LargeChange properties. To adjust the starting point of the scroll thumb, set the Value property when the control is initially displayed.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
[ComVisible(true)]
public class RadScrollBar : RadControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IAnalyticsProvider
Inheritance: objectMarshalByRefObjectComponentControlScrollableControlRadControlRadScrollBar...
Derived Classes:
Implements:
Inherited Members
Constructors
public RadScrollBar()
Properties
public int LargeChange { get; set; }
public int MinThumbLength { get; set; }
Gets the instance of RadScrollBarElement wrapped by this control. RadScrollBarElement is the main element in the hierarchy tree and encapsulates the actual functionality of both RadHScrollBar and RadVScrollBar.
[Browsable(false)]
public RadScrollBarElement ScrollBarElement { get; }
public virtual ScrollType ScrollType { get; set; }
public int SmallChange { get; set; }
Gets the theme class name for this control.
public override string ThemeClassName { get; }
Overrides:
public int ThumbLength { get; }
public double ThumbLengthProportion { get; set; }
Methods
Indicates that the control supplies theme information for its internal scrollbar element.
public override bool ControlDefinesThemeForElement(RadElement element)
The element whose theme ownership is being queried.
Returns:true only for a RadScrollBarElement.
Overrides:
Creates the accessibility object for the control, using the Telerik object when enabled.
protected override AccessibleObject CreateAccessibilityInstance()
A RadScrollBarAccessibleObject when Telerik accessibility objects are enabled; otherwise, the base control's object.
Overrides:
Creates the internal scrollbar element, forwards its events to the control, and adds it to the root element.
protected override void CreateChildItems(RadElement parent)
The parent supplied by the control tree; this implementation attaches the scrollbar to the root element.
Overrides:
Creates the root element that applies scrollbar-specific default sizing.
protected override RootRadElement CreateRootElement()
Overrides:
Creates the element that implements the scrollbar's range, thumb, and input behavior. Override this factory to provide a specialized scrollbar element.
protected virtual RadScrollBarElement CreateScrollBarElement()
A new scrollbar element.
Raises ScrollParameterChanged when the internal scrollbar's range or change values change.
protected virtual void OnScrollParameterChanged(EventArgs args)
The event data forwarded from the scrollbar element.
Raises the control's ValueChanged event when its scrollbar element changes value.
protected virtual void OnValueChanged(EventArgs e)
The event data forwarded from the scrollbar element.
Scrolls to the first position specified by the Minimum property.
public void PerformFirst()
Decrements the thumb position by the number of large steps given as a parameter. The distance of a large step is determined by the LargeChange property.
Increments the thumb position by the number of large steps given as a parameter. The distance of a large step is determined by the LargeChange property.
Scrolls to the last position specified by the Maximum property.
public void PerformLast()
Scrolls to the specified position.
Decrements the thumb position by the number of small steps given as a parameter. The distance of a small step is determined by the SmallChange property.
Increments the thumb position by the number of small steps given as a parameter. The distance of a small step is determined by the SmallChange property.
Events
public event EventHandler ScrollParameterChanged
public event EventHandler ValueChanged