Class AutoScroller
Represents a class that provides base implementation for automatic scrolling of content in SfDataGrid.
Inheritance
Namespace: Syncfusion.UI.Xaml.DataGrid
Assembly: Syncfusion.Grid.WinUI.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 |
---|---|
Windows.Foundation.Rect | The Windows.Foundation.Rect that contains the rectangle information about the outer scroll area. |
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 |
---|---|
Windows.Foundation.Rect | The Windows.Foundation.Rect that contains the rectangle information of inside scroll area. |
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 |
---|
Windows.Foundation.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 |
---|---|
Windows.Foundation.Point | The Windows.Foundation.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 |
---|---|---|
Windows.Foundation.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. |
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 GridSelectionMode is Multiple or Extended.
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.