Share via


IUIAutomationGridPattern::GetItem Method

Retrieves a UI Automation element representing an item in the grid.

Syntax

HRESULT GetItem(      
    int row,
    int column,
    IUIAutomationElement **element
);

Parameters

  • row
    [in] The zero-based index of the row.
  • column
    [in] The zero-based index of the column.
  • element
    [out, retval] The address of a variable that receives an IUIAutomationElement interface for the item.

Return Value

Returns S_OK if successful, or an error value otherwise.