IScrollProvider::VerticalScrollPercent Property

Gets the current vertical scroll position.

Syntax

HRESULT IScrollProvider::get_VerticalScrollPercent(double *pRetVal);

Parameters

  • pRetVal
    [retval][out] The address of a variable that receives the vertical scroll position as a percentage of the total content area within the control. This parameter is passed uninitialized.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

The vertical scroll position can be reported as UIA_ScrollPatternNoScroll if no valid position is available; for example, if the window does not have a vertical scroll bar.

See Also

IScrollProvider, IScrollProvider::HorizontalScrollPercent, UI Automation Providers Overview