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.

IRawElementProviderFragment::FragmentRoot property

Specifies the root node of the fragment.

This property is read-only.

Syntax


HRESULT get_FragmentRoot(
  [out, retval]  IRawElementProviderFragmentRoot **pRetVal
);

Property value

Type: IRawElementProviderFragmentRoot**

The root node.

Remarks

A provider for a fragment root should return a pointer to its own implementation of IRawElementProviderFragmentRoot.

Examples

The following example implementation for a list item provider returns the provider for the parent list box.


HRESULT STDMETHODCALLTYPE ListItemProvider::get_FragmentRoot(IRawElementProviderFragmentRoot** pRetVal)
{
    if (pRetVal == NULL) return E_INVALIDARG;
    IRawElementProviderFragmentRoot* pRoot = static_cast<IRawElementProviderFragmentRoot*>m_parentProvider;
    pRoot->AddRef();
    *pRetVal = pRoot;
    return S_OK;
}            

Requirements

Minimum supported client

Windows XP [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2003 [desktop apps | Windows Store apps]

Header

UIAutomationCore.h (include UIAutomation.h)

IDL

UIAutomationCore.idl

See also

IRawElementProviderFragment

 

 

Community Additions

Show:
© 2014 Microsoft. All rights reserved.