ISpreadsheetProvider::GetItemByName method

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

Syntax

HRESULT GetItemByName(
  LPCWSTR                   name,
  IRawElementProviderSimple **pRetVal
);

Parameters

name

Type: LPCWSTR

The name of the target cell.

pRetVal

Type: IRawElementProviderSimple**

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.

Remarks

A spreadsheet cell typically has a name such as “c5” or “a15”. A name can also apply to a range of cells.

Requirements

   
Minimum supported client Windows 8 [desktop apps | UWP apps]
Minimum supported server Windows Server 2012 [desktop apps | UWP apps]
Target Platform Windows
Header uiautomationcore.h (include UIAutomation.h)

See Also

ISpreadsheetProvider