Share via


IScrollProvider::HorizontallyScrollable Property

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

Syntax

HRESULT IScrollProvider::get_HorizontallyScrollable(BOOL *pRetVal);

Parameters

  • pRetVal
    [retval][out] The address of a variable that receives TRUE if the Microsoft UI Automation element can scroll horizontally; 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 current viewable area, meaning IScrollProvider::HorizontallyScrollable is false. However, either resizing the control or adding child items may increase the bounds of the content area beyond the viewable area, meaning IScrollProvider::HorizontallyScrollable is true.

See Also

UI Automation Providers Overview