Share via


IUIAutomationElement::CurrentItemType Property

Retrieves a string describing the type of item represented by UI element.

Syntax

HRESULT IUIAutomationElement::get_CurrentItemType(BSTR *retVal);

Parameters

  • retVal
    The address of a BSTR that receives the type string.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

This property is used to obtain information about items in a list, tree view, or data grid. For example, an item in a file directory view might be a "Document File" or a "Folder".

See Also

UIA_ItemTypePropertyId, IUIAutomationElement, IUIAutomationElement::CachedItemType