Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
IRawElementProviderFragment Interface

IRawElementProviderFragment Interface

Exposes methods and properties on user interface (UI) elements that are part of a structure more than one level deep, such as a list box or a list item. Implemented by UI Automation providers.

Namespace:  System.Windows.Automation.Provider
Assembly:  UIAutomationProvider (in UIAutomationProvider.dll)

public interface IRawElementProviderFragment : IRawElementProviderSimple

The IRawElementProviderFragment type exposes the following members.

Public propertyBoundingRectangleGets the bounding rectangle of this element.
Public propertyFragmentRootRetrieves the root node of the fragment.
Public propertyHostRawElementProviderGets a base provider for this element. (Inherited from IRawElementProviderSimple.)
Public propertyProviderOptionsGets a value that specifies characteristics of the UI Automation provider; for example, whether it is a client-side or server-side provider. (Inherited from IRawElementProviderSimple.)

Public methodGetEmbeddedFragmentRootsRetrieves an array of fragment roots that are embedded in the UI Automation element tree rooted at the current element.
Public methodGetPatternProviderRetrieves an object that provides support for a control pattern on a UI Automation element. (Inherited from IRawElementProviderSimple.)
Public methodGetPropertyValueRetrieves the value of a property supported by the UI Automation provider. (Inherited from IRawElementProviderSimple.)
Public methodGetRuntimeIdRetrieves the runtime identifier of an element.
Public methodNavigateRetrieves the UI Automation element in a specified direction within the tree.
Public methodSetFocusSets the focus to this element.

The root node of the fragment must support the IRawElementProviderFragmentRoot interface, which inherits from IRawElementProviderFragment.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft