Exporter (0) Imprimer
Développer tout

IRawElementProviderHwndOverride.GetOverrideProviderForHwnd, méthode

Retrieves a UI automation provider for the specified element.

Espace de noms: System.Windows.Automation.Provider
Assembly : UIAutomationProvider (dans uiautomationprovider.dll)

IRawElementProviderSimple GetOverrideProviderForHwnd (
	IntPtr hwnd
)
IRawElementProviderSimple GetOverrideProviderForHwnd (
	IntPtr hwnd
)
function GetOverrideProviderForHwnd (
	hwnd : IntPtr
) : IRawElementProviderSimple
Non applicable.

Paramètres

hwnd

The window handle of the element.

Valeur de retour

The provider for the specified element, or a null reference (Nothing in Microsoft Visual Basic .NET) if the element's default provider is not being overridden.

This method is implemented by client-side UI Automation providers for fragment roots in fragments that contain window-based child elements, when the HWNDs of those child elements are not logically positioned within the UI Automation tree. For more information, see Non-WPF Provider Reparenting and Non-WPF Provider Repositioning in the Server-side UI Automation Provider Implementation topic.

The returned provider must be part of the fragment tree. It can supply additional properties or override properties of the specified component.

If the returned provider implements IRawElementProviderFragment, the provider should be part of the fragment's tree and be reachable by navigating from the fragment's root.

Microsoft .NET Framework 3.0 est pris en charge sur Windows Vista, Microsoft Windows XP SP2 et Windows Server 2003 SP1.

.NET Framework

Prise en charge dans : 3.0

Ajouts de la communauté

AJOUTER
Afficher:
© 2015 Microsoft