IUIAutomationSpreadsheetPattern::GetItemByName method (uiautomationclient.h)

Retrieves a UI Automation element that represents the spreadsheet cell that has the specified name.

Syntax

HRESULT GetItemByName(
  [in]          BSTR                 name,
  [out, retval] IUIAutomationElement **element
);

Parameters

[in] name

Type: BSTR

The name of the target cell.

[out, retval] element

Type: IUIAutomationElement**

Receives the element that represents the target cell.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

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

IUIAutomationSpreadsheetPattern