Spread Windows Forms 13.0 Product Documentation
Spread Windows Forms 13.0 Product Documentation / Developer's Guide / Using Touch Support with the Component / Using Touch Support / Using Touch Support with Scrolling
In This Topic
    Using Touch Support with Scrolling
    In This Topic

    You can use touch gestures when scrolling in the control.

    You can tap the scroll bar or press and slide the scroll bar to scroll. You can also use panning gestures in the cell area of the control (vertical, horizontal, diagonal, or oblique). Panning in the diagonal direction scrolls horizontally and vertically. Specify the type of panning mode with the PanningMode property.

    You can specify feedback when scrolling with the BoundaryFeedbackMode property (standard or split). For more information on standard, see https://docs.microsoft.com/en-us/windows/win32/api/uxtheme/nf-uxtheme-beginpanningfeedback?redirectedfrom=MSDN. The Split option separates frozen and scrollable areas or headers and scrollable areas.

    Using Code

    This example sets the PanningMode property to allow horizontal and vertical panning and specifies the type of feedback.

    CS
    Copy Code
    fpSpread1.PanningMode = FarPoint.Win.Spread.SpreadPanningMode.Both;
    fpSpread1.BoundaryFeedbackMode = FarPoint.Win.Spread.BoundaryFeedbackMode.Split;
    VB
    Copy Code
    fpSpread1.PanningMode = FarPoint.Win.Spread.SpreadPanningMode.Both
    fpSpread1.BoundaryFeedbackMode = FarPoint.Win.Spread.BoundaryFeedbackMode.Split
    See Also