Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ISpreadsheetProvider::GetItemByName method

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

name [in]

Type: LPCWSTR

The name of the target cell.

pRetVal [out, retval]

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 | Windows Store apps]

Minimum supported server

Windows Server 2012 [desktop apps | Windows Store apps]

Header

UIAutomationCore.h (include UIAutomation.h)

IDL

UIAutomationCore.idl

See also

ISpreadsheetProvider

 

 

Show:
© 2016 Microsoft