ComponentOne Basic Library for WPF and Silverlight
CreateAutomationPeer(Object,Type) Method


C1.WPF Namespace > AutomationPeerFactory Class > CreateAutomationPeer Method : CreateAutomationPeer(Object,Type) Method
Owner control.
Type of the owner control.
Creates an instance of AutomationPeer class for given C1 control.
Syntax
'Declaration
 
Public Overloads Shared Function CreateAutomationPeer( _
   ByVal peerOwner As System.Object, _
   ByVal ownerType As System.Type _
) As System.Windows.Automation.Peers.AutomationPeer
'Usage
 
Dim peerOwner As System.Object
Dim ownerType As System.Type
Dim value As System.Windows.Automation.Peers.AutomationPeer
 
value = AutomationPeerFactory.CreateAutomationPeer(peerOwner, ownerType)
public static System.Windows.Automation.Peers.AutomationPeer CreateAutomationPeer( 
   System.object peerOwner,
   System.Type ownerType
)

Parameters

peerOwner
Owner control.
ownerType
Type of the owner control.

Return Value

The automation peer object.
See Also

Reference

AutomationPeerFactory Class
AutomationPeerFactory Members
Overload List