Spread for ASP.NET 7.0 Product Documentation
Using Touch Support with Scrolling
See Also Support Options
Spread for ASP.NET 7.0 Product Documentation > Developer's Guide > Using Touch Support with the Component > Using Touch Support > Using Touch Support with Scrolling

Glossary Item Box

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, or oblique). Panning in the diagonal direction scrolls horizontally and vertically. Specify the type of panning mode with the PanningMode property and SpreadPanningMode enumeration.

Panning does not apply to header or footer areas.

Using Code

Set the PanningMode property.

Example

This example sets the PanningMode property to Both.

C# Copy Code
FpSpread1.Sheets[0].Columns.Count = 10;
FpSpread1.Sheets[0].Rows.Count = 20;
FpSpread1.TouchInfo.PanningMode = FarPoint.Web.Spread.SpreadPanningMode.Both;
VB Copy Code
FpSpread1.Sheets(0).Columns.Count = 10
FpSpread1.Sheets(0).Rows.Count = 20
FpSpread1.TouchInfo.PanningMode = FarPoint.Web.Spread.SpreadPanningMode.Both

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.