 | AdapterSwipe Method (Location, GestureDirection, Distance, Duration, Int32) |
Performs a 'Swipe' operations that starts at the point of the element specified by location.
Namespace:
Ranorex
Assembly:
Ranorex.Core (in Ranorex.Core.dll) Version: 10.2.5+git.08880485
Syntaxpublic void Swipe(
Location startLocation,
GestureDirection direction,
Distance distance,
Duration swipeDuration,
int steps
)
Public Sub Swipe (
startLocation As Location,
direction As GestureDirection,
distance As Distance,
swipeDuration As Duration,
steps As Integer
)
Parameters
- startLocation
- Type: RanorexLocation
The location where the swipe should start. - direction
- Type: Ranorex.Core.Recorder.TouchGestureDirection
The direction of the swipe. - distance
- Type: Ranorex.CoreDistance
The distance to swipe. For custom rotations the values is not pixel exact and will likely
get rounded. The rounding is dependent of the technology the swipe is executed on.
- swipeDuration
- Type: RanorexDuration
The duration in that the swipe should get performed. - steps
- Type: SystemInt32
How many steps the swipe shall have. A step is one distinct move event on the target technology. The default is '0', this
means the target technology determines how many steps are made by applying custom heuristics. A step count of one will
produce the event sequence 1x pointer down, 1x pointer move and 1x pointer up. A step count of two will produce the
event sequence 1x pointer down, 2x pointer move and 1x pointer up.
Exceptions
See Also