ISpreadsheetProvider::GetItemByName method (uiautomationcore.h)
Exposes a UI Automation element that represents the spreadsheet cell that has the specified name.
Syntax
HRESULT GetItemByName(
[in] LPCWSTR name,
[out, retval] IRawElementProviderSimple **pRetVal
);
Parameters
[in] name
Type: LPCWSTR
The name of the target cell.
[out, retval] 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
Requirement | Value |
---|---|
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) |