Skip to main content

Windows Dev Center

UIAutomationElement2::CachedOptimizeForVisualContent property

Retrieves a cached value that indicates whether the provider exposes only elements that are visible.

This property is read-only.

Syntax


HRESULT get_CachedOptimizeForVisualContent(
  [out, retval] BOOL *retVal
);

Property value

Type: BOOL*

TRUE if the provider exposes only visible elements, otherwise FALSE.

Remarks

A value of TRUE indicates that the provider optimizes for visual content, while FALSE indicates that the provider optimizes for virtual content. For more information, see Working with Virtualized Items.

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

UIAutomationClient.h (include UIAutomation.h)

IDL

UIAutomationClient.idl

See also

Reference
Automation Element Property IDs
CurrentOptimizeForVisualContent
IUIAutomationElement2