IUIAutomationSpreadsheetPattern::GetItemByName method

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

name [in]

Type: BSTR

The name of the target cell.

element [out, retval]

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

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

UIAutomationClient.h (include UIAutomation.h)

IDL

UIAutomationClient.idl

See also

IUIAutomationSpreadsheetPattern

 

 

Community Additions

ADD
Show:
© 2014 Microsoft