Share via


IScrollProvider::VerticallyScrollable Property

Gets a value that indicates whether the control can scroll vertically.

Syntax

HRESULT IScrollProvider::get_VerticallyScrollable(BOOL *pRetVal);

Parameters

  • pRetVal
    [retval][out] The address of a variable that receives TRUE if the Microsoft UI Automation element can scroll vertically; otherwise FALSE. This parameter is passed uninitialized.

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 control might not be larger than the viewable area, meaning IScrollProvider::VerticallyScrollable is false. However, resizing the control or adding child items may increase the bounds of the content area beyond the viewable area, meaning that IScrollProvider::VerticallyScrollable is true.

See Also

UI Automation Providers Overview