IUIAutomationElement2::get_CurrentOptimizeForVisualContent method (uiautomationclient.h)

Indicates whether the provider exposes only elements that are visible.

This property is read-only.

Syntax

HRESULT get_CurrentOptimizeForVisualContent(
  BOOL *retVal
);

Parameters

retVal

Return value

None

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

Requirement Value
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Target Platform Windows
Header uiautomationclient.h (include UIAutomation.h)

See also

CachedOptimizeForVisualContent

IUIAutomationElement2

Reference