IUIAutomationGridPattern::CachedColumnCount Property

Retrieves the cached number of columns in the grid.

Syntax

HRESULT IUIAutomationGridPattern::get_CachedColumnCount(int *retVal);

Parameters

  • retVal
    The address of a variable that receives the cached count of columns. The default value is 0.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

Hidden rows and columns, depending on the provider implementation, may be loaded in the Microsoft UI Automation tree and will therefore be reflected in the row count and column count properties. If the hidden rows and columns have not yet been loaded they are not counted.