ItemScroller<T>
Represent item scroller
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Type Parameters:
T
Syntax:
public class ItemScroller<T> : IEnumerable, IDisposable
Inheritance: objectItemScroller<T>
Derived Classes:
Implements:
Constructors
public ItemScroller()
Fields
protected int cachedScrollOffset
protected int currentItemWidth
protected bool scrollbarChanged
Properties
When set to true, allows the scroller to scroll through the items when the scrollbar is not visible.
public bool AllowHiddenScrolling { get; set; }
Gets or sets a value indicating whether scrolling is asynchronous.
public bool AsynchronousScrolling { get; set; }
true if [asynchronous scrolling]; otherwise, false.
Gets or sets the client size.
public SizeF ClientSize { get; set; }
The size of the client.
Gets or sets the element provider.
public IVirtualizedElementProvider<T> ElementProvider { get; set; }
The element provider.
Gets or sets the item height.
public int ItemHeight { get; set; }
The height of the item.
Gets or sets the item spacing.
public int ItemSpacing { get; set; }
The item spacing.
Gets the max width of item.
public int MaxItemWidth { get; }
The width of the max item.
Gets or sets the associated scrollbar.
public RadScrollBarElement Scrollbar { get; set; }
The scrollbar.
Gets or sets the scroll mode.
public ItemScrollerScrollModes ScrollMode { get; set; }
The scroll mode.
Gets or sets the scroll offset.
public int ScrollOffset { get; set; }
The scroll offset.
Gets or sets the state of the scroll.
public ScrollState ScrollState { get; set; }
The state of the scroll.
Gets or sets the tool tip.
public ToolTip ToolTip { get; protected set; }
The tool tip.
Gets or sets the associated traverser.
public ITraverser<T> Traverser { get; set; }
The traverser.
Methods
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Implements:
Releases unmanaged and - optionally - managed resources.
protected virtual void Dispose(bool disposing)
true to release both managed and unmanaged resources; false to release only unmanaged resources.
Determines the traverser's current item index
Gets the height of the scroll.
Determines the ToolTip text
Hides scroller's tooltip
protected virtual void HideToolTip()
Determines whether the scrollbar is currently at or near the maximum scroll position (bottom for vertical, right for horizontal).
public virtual bool IsScrolledToEnd()
true if scrolled to the end or no scrollbar is needed; otherwise, false.
Called when tool tip text is needed.
protected virtual void OnToolTipTextNeeded(object sender, ToolTipTextNeededEventArgs e)
The sender.
eToolTipTextNeededEventArgsThe ToolTipTextNeededEventArgs instance containing the event data.
Scrolls to begin.
Scrolls to end.
Scrolls to item.
Scrolls the scrollbar to the maximum scroll position (bottom for vertical, right for horizontal).
public virtual void ScrollToMaxValue()
Sets the scroll bar visibility.
protected void SetScrollBarVisibility()
Shows scroller's tool tip
protected virtual void ShowToolTip()
Updates the on scroll.
protected virtual bool UpdateOnScroll(ScrollEventArgs e)
The ScrollEventArgs instance containing the event data.
Returns:Updates the scroll range.
public virtual void UpdateScrollRange()
Updates the scroll step.
public virtual void UpdateScrollStep()
Updates the scroll value.
public virtual void UpdateScrollValue()
Events
Occurs when the scroller is updated.
public event EventHandler ScrollerUpdated
Occurs when tool tip text is needed.
public event ToolTipTextNeededEventHandler ToolTipTextNeeded