IUIAutomationElement::CachedControlType Property
Retrieves a description of the UI element's control type from the cache.
Syntax
HRESULT IUIAutomationElement::get_CachedControlType(CONTROLTYPEID *retVal);
Parameters
- retVal
The address of a variable that receives the cached control type. For a list of control type IDs, see Control Type Identifiers.
Return Value
Returns S_OK if successful, or an error value otherwise.
Remarks
Control types describe a known interaction model for UI Automation elements without relying on a localized control type or combination of complex logic rules. This property cannot change at run time unless the control supports the IUIAutomationMultipleViewPattern interface. An example is the Win32 ListView control, which can change from a data grid to a list, depending on the current view.
See Also
UIA_ControlTypePropertyId, IUIAutomationElement::CurrentControlType