Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

IUIAutomationElement::CurrentControlType Property

Retrieves the control type of the element.

Syntax


HRESULT IUIAutomationElement::get_CurrentControlType(CONTROLTYPEID *retVal);

Parameters

retVal
The address of a variable that receives the 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

Community Additions

Show:
© 2015 Microsoft