Class AutoScroller
Represents a class that provides base implementation for automatic scrolling of content in SfDataGrid.
Inheritance
Namespace: Syncfusion.UI.Xaml.Grid
Assembly: Syncfusion.SfGrid.WPF.dll
Syntax
public class AutoScroller : Object
Constructors
AutoScroller()
Initializes a new instance of the AutoScroller class.
Declaration
public AutoScroller()
Properties
AutoScrollBounds
Gets or sets the display rectangle of outer scroll area. Typically the client area of the control.
Declaration
public Rect AutoScrollBounds { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Rect | The |
AutoScrolling
Gets or sets the orientation of auto-scrolling.
Declaration
public AutoScrollOrientation AutoScrolling { get; set; }
Property Value
Type | Description |
---|---|
AutoScrollOrientation | One of the AutoScrollOrientation that specifies the orientation of auto-scrolling. |
HScrollBar
Gets the horizontal scrollbar value of VisualContainer .
Declaration
public IScrollBar HScrollBar { get; }
Property Value
Type |
---|
IScrollBar |
InsideScrollBounds
Gets the display rectangle of inside scroll area. The control will scroll if the user drag the mouse outside of VisualContainer area.
Declaration
public virtual Rect InsideScrollBounds { get; }
Property Value
Type | Description |
---|---|
System.Windows.Rect | The |
InsideScrollMargin
Gets or Sets the default margin for the scrolling area when the user moves the mouse point to the margin between InsideScrollBounds and AutoScrollBounds.
Declaration
public Size InsideScrollMargin { get; set; }
Property Value
Type |
---|
System.Windows.Size |
IntervalTime
Gets or sets the timer interval for auto scrolling.
Declaration
public TimeSpan IntervalTime { get; set; }
Property Value
Type |
---|
System.TimeSpan |
IsEnabled
Gets or sets a value that indicates whether the auto-scrolling is enabled in SfDataGrid.
Declaration
public bool IsEnabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | true if the auto-scrolling is enabled; otherwise, false. |
MouseMovePosition
Gets or sets the mouse position during move operation performed in VisualContainer.
Declaration
protected Point MouseMovePosition { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Point | The System.Windows.Point that specifies the corresponding mouse move position. |
VisualContainer
Gets or sets the reference to the VisualContainer .
Declaration
public VisualContainer VisualContainer { get; set; }
Property Value
Type |
---|
VisualContainer |
VScrollBar
Gets the vertical scrollbar value of VisualContainer .
Declaration
public IScrollBar VScrollBar { get; }
Property Value
Type |
---|
IScrollBar |
Methods
AutoScroll(Point)
Scrolls automatically for the specified mouse point.
Declaration
protected virtual void AutoScroll(Point mousePoint)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Point | mousePoint | The mouse point to scroll automatically. |
OnAutoScrollingChanged(EventArgs)
Raises the AutoScrollingChanged event.
Declaration
protected virtual void OnAutoScrollingChanged(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | e | An System.EventArgs that contains the event data. |
RaiseAutoScrollerValueChanged(Boolean, Boolean, Boolean, Boolean, RowColumnIndex)
Raises the AutoScrollerValueChanged event.
Declaration
protected virtual void RaiseAutoScrollerValueChanged(bool isLineUp, bool isLineDown, bool isLineLeft, bool isLineRight, RowColumnIndex rowColumnIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | isLineUp | Indicates whether the content is scrolled upward to the SfDataGrid during drag selection. |
System.Boolean | isLineDown | Indicates whether the content is scrolled downward to the SfDataGrid during drag selection. |
System.Boolean | isLineLeft | Indicates whether the content is scrolled left to the SfDataGrid during drag selection. |
System.Boolean | isLineRight | Indicates whether the content is scrolled right to the SfDataGrid during drag selection. |
RowColumnIndex | rowColumnIndex | The corresponding scroll rowcolumnindex while performing dragging in SfDataGrid. |
ResetInsideScrollMargins()
Resets the InsideScrollMargin property to its default value.
Declaration
public void ResetInsideScrollMargins()
Events
AutoScrollerValueChanged
Occurs when the drag selection is performed .
Declaration
public event EventHandler<AutoScrollerValueChangedEventArgs> AutoScrollerValueChanged
Event Type
Type |
---|
System.EventHandler<AutoScrollerValueChangedEventArgs> |
Remarks
Drag selection is enabled when the
AutoScrollingChanged
Occurs when the auto-scrolling is being performed in SfDataGrid..
Declaration
public event EventHandler AutoScrollingChanged
Event Type
Type |
---|
System.EventHandler |
Remarks
If you want to prevent auto-scrolling, handle this event and reset the AutoScrolling property.