Class ItemScroller<T>
Represent item scroller
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class ItemScroller<T> : IEnumerable, IDisposable
Type Parameters
T
|
Constructors
ItemScroller()
Declaration
public ItemScroller()
Fields
cachedScrollOffset
Declaration
protected int cachedScrollOffset
Field Value
System.
|
currentItemWidth
Declaration
protected int currentItemWidth
Field Value
System.
|
scrollbarChanged
Declaration
protected bool scrollbarChanged
Field Value
System.
|
Properties
AllowHiddenScrolling
When set to true, allows the scroller to scroll through the items when the scrollbar is not visible.
Declaration
public bool AllowHiddenScrolling { get; set; }
Property Value
System.
|
AsynchronousScrolling
Gets or sets a value indicating whether scrolling is asynchronous.
Declaration
public bool AsynchronousScrolling { get; set; }
Property Value
System.
|
ClientSize
Gets or sets the client size.
Declaration
public SizeF ClientSize { get; set; }
Property Value
System. The size of the client. |
ElementProvider
Gets or sets the element provider.
Declaration
public IVirtualizedElementProvider<T> ElementProvider { get; set; }
Property Value
IVirtualized The element provider. |
ItemHeight
Gets or sets the item height.
Declaration
public int ItemHeight { get; set; }
Property Value
System. The height of the item. |
ItemSpacing
Gets or sets the item spacing.
Declaration
public int ItemSpacing { get; set; }
Property Value
System. The item spacing. |
MaxItemWidth
Gets the max width of item.
Declaration
public int MaxItemWidth { get; }
Property Value
System. The width of the max item. |
Position
Gets the position.
Declaration
public object Position { get; }
Property Value
System. The position. |
Scrollbar
Gets or sets the associated scrollbar.
Declaration
public RadScrollBarElement Scrollbar { get; set; }
Property Value
Rad The scrollbar. |
ScrollMode
Gets or sets the scroll mode.
Declaration
public ItemScrollerScrollModes ScrollMode { get; set; }
Property Value
Item The scroll mode. |
ScrollOffset
Gets or sets the scroll offset.
Declaration
public int ScrollOffset { get; set; }
Property Value
System. The scroll offset. |
ScrollState
Gets or sets the state of the scroll.
Declaration
public ScrollState ScrollState { get; set; }
Property Value
Scroll The state of the scroll. |
ToolTip
Gets or sets the tool tip.
Declaration
public ToolTip ToolTip { get; protected set; }
Property Value
System. The tool tip. |
Traverser
Gets or sets the associated traverser.
Declaration
public ITraverser<T> Traverser { get; set; }
Property Value
ITraverser<T>
The traverser. |
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()
Implements
Dispose(Boolean)
Releases unmanaged and - optionally - managed resources.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
System.
|
GetCurrentItemIndex()
Determines the traverser's current item index
Declaration
protected virtual int GetCurrentItemIndex()
Returns
System. The Index of the current item |
GetScrollHeight(T)
Gets the height of the scroll.
Declaration
public virtual int GetScrollHeight(T item)
Parameters
T
item
The item. |
Returns
System.
|
GetToolTipText()
Determines the ToolTip text
Declaration
protected virtual string GetToolTipText()
Returns
System. Returns the ToolTip's text |
HideToolTip()
Hides scroller's tooltip
Declaration
protected virtual void HideToolTip()
OnScrollerUpdated(EventArgs)
Raises the Scroller
Declaration
protected virtual void OnScrollerUpdated(EventArgs e)
Parameters
System. The System. |
OnToolTipTextNeeded(Object, ToolTipTextNeededEventArgs)
Called when tool tip text is needed.
Declaration
protected virtual void OnToolTipTextNeeded(object sender, ToolTipTextNeededEventArgs e)
Parameters
System. The sender. |
Tool The Tool |
ScrollDown(Int32)
Scrolls down to specified position.
Declaration
protected virtual bool ScrollDown(int step)
Parameters
System. The step. |
Returns
System.
|
ScrollTo(Int32)
Scrolls to specified position.
Declaration
protected virtual bool ScrollTo(int position)
Parameters
System. The position. |
Returns
System.
|
ScrollToBegin()
Scrolls to begin.
Declaration
protected virtual bool ScrollToBegin()
Returns
System.
|
ScrollToEnd()
Scrolls to end.
Declaration
protected virtual bool ScrollToEnd()
Returns
System.
|
ScrollToItem(T)
Scrolls to item.
Declaration
public virtual bool ScrollToItem(T item)
Parameters
T
item
The item. |
Returns
System.
|
ScrollToItem(T, Boolean)
Scrolls to item.
Declaration
public virtual bool ScrollToItem(T item, bool checkScrollVisibility)
Parameters
T
item
The item. |
System. if set to |
Returns
System.
|
ScrollUp(Int32)
Scrolls up.
Declaration
protected virtual bool ScrollUp(int step)
Parameters
System. The step. |
Returns
System.
|
SetScrollBarVisibility()
Sets the scroll bar visibility.
Declaration
protected void SetScrollBarVisibility()
ShowToolTip()
Shows scroller's tool tip
Declaration
protected virtual void ShowToolTip()
UpdateOnScroll(ScrollEventArgs)
Updates the on scroll.
Declaration
protected virtual bool UpdateOnScroll(ScrollEventArgs e)
Parameters
System. The System. |
Returns
System.
|
UpdateScrollRange()
Updates the scroll range.
Declaration
public virtual void UpdateScrollRange()
UpdateScrollRange(Int32, Boolean)
Updates the scroll range with concrete range.
Declaration
public virtual void UpdateScrollRange(int width, bool updateScrollValue)
Parameters
System. The width. |
System. if set to |
UpdateScrollStep()
Updates the scroll step.
Declaration
public virtual void UpdateScrollStep()
UpdateScrollValue()
Updates the scroll value.
Declaration
public virtual void UpdateScrollValue()
Events
ScrollerUpdated
Occurs when the scroller is updated.
Declaration
public event EventHandler ScrollerUpdated
Event Type
System.
|
ToolTipTextNeeded
Occurs when tool tip text is needed.
Declaration
public event ToolTipTextNeededEventHandler ToolTipTextNeeded
Event Type
Explicit Interface Implementations
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
System.
|