Share via


IUIAutomationTextRange::GetChildren Method

Retrieves a collection of all embedded objects that fall within the text range.

Syntax

HRESULT GetChildren(      
    IUIAutomationElementArray **children
);

Parameters

  • children
    [out, retval] The address of a variable that receives a pointer to the IUIAutomationElementArray interface for the collection of all child objects that fall within the range. Children that overlap with the range but are not entirely enclosed by it are also included in the collection. An empty collection is returned if there are no child objects.

Return Value

Returns S_OK if successful, or an error value otherwise.