IUIAutomationScrollPattern::CurrentVerticallyScrollable Property

Retrieves a cached value that specifies whether the UI Automation element can scroll vertically.

Syntax

HRESULT IUIAutomationScrollPattern::get_CurrentVerticallyScrollable(BOOL *retVal);

Parameters

  • retVal
    The address of a variable that receives the value: TRUE if the element can scroll vertically, otherwise FALSE.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

This property can be dynamic. For example, the content area of the element might not be larger than the current viewable area, meaning that the property is FALSE. However, resizing the element or adding child items can increase the bounds of the content area beyond the viewable area, making the property TRUE.

See Also

IUIAutomationScrollPattern::CurrentHorizontallyScrollable