ScrollPattern
UIA Pro is supported as a technical preview.
UIAPro. ScrollPattern
new ScrollPattern()
Methods
canScrollHorizontally() → {Promise.<boolean>}
Returns:
- Type
- Promise.<boolean>
canScrollVertically() → {Promise.<boolean>}
Returns:
- Type
- Promise.<boolean>
getHorizontalScrollPercent() → {Promise.<number>}
Returns:
- Type
- Promise.<number>
getHorizontalViewSize() → {Promise.<number>}
Returns:
- Type
- Promise.<number>
getVerticalScrollPercent() → {Promise.<number>}
Returns:
- Type
- Promise.<number>
getVerticalViewSize() → {Promise.<number>}
Returns:
- Type
- Promise.<number>
scroll(horizontalAmount, verticalAmount) → {Promise.<void>}
Parameters:
Name | Type | Description |
---|---|---|
horizontalAmount | ScrollAmount | the horizontal scroll amount. |
verticalAmount | ScrollAmount | the vertical scroll amount. |
Returns:
- Type
- Promise.<void>
scrollHorizontal(horizontalAmount) → {Promise.<void>}
Parameters:
Name | Type | Description |
---|---|---|
horizontalAmount | ScrollAmount | the horizontal scroll amount. |
Returns:
- Type
- Promise.<void>
scrollVertical(verticalAmount) → {Promise.<void>}
Parameters:
Name | Type | Description |
---|---|---|
verticalAmount | ScrollAmount | the vertical scroll amount. |
Returns:
- Type
- Promise.<void>
setHorizontalScrollPercent(horizontalPercent) → {Promise.<void>}
Parameters:
Name | Type | Description |
---|---|---|
horizontalPercent | number | the horizontal scroll percent. |
Returns:
- Type
- Promise.<void>
setScrollPercent(horizontalPercent, verticalPercent) → {Promise.<void>}
Parameters:
Name | Type | Description |
---|---|---|
horizontalPercent | number | the horizontal scroll percent. |
verticalPercent | number | the vertical scroll percent. |
Returns:
- Type
- Promise.<void>
setVerticalScrollPercent(verticalPercent) → {Promise.<void>}
Parameters:
Name | Type | Description |
---|---|---|
verticalPercent | number | the vertical scroll percent. |
Returns:
- Type
- Promise.<void>