TreeViewDataItemAutomationPeer.GetPattern Method (PatternInterface)

.NET Framework (current version)
 

Gets the control pattern for the element that is associated with this TreeViewDataItemAutomationPeer.

Namespace:   System.Windows.Automation.Peers
Assembly:  PresentationFramework (in PresentationFramework.dll)

public override object GetPattern(
	PatternInterface patternInterface
)

Parameters

patternInterface
Type: System.Windows.Automation.Peers.PatternInterface

The type of pattern implemented by the element to retrieve.

Return Value

Type: System.Object

The object that implements the pattern interface, or null if the specified pattern interface is not implemented by this peer.

The following table describes what the GetPattern method returns when depending on the value of patternInterface:

The value of patternInterface

The return value

ExpandCollapse

The current TreeViewDataItemAutomationPeer.

ItemContainer

The TreeViewItemAutomationPeer that represents the TreeViewItem that contains the data item

SelectionItem

The current TreeViewDataItemAutomationPeer.

ScrollItem

The current TreeViewDataItemAutomationPeer.

SynchronizedInput

An object that implements the ISynchronizedInputProvider interface.

.NET Framework
Available since 4.0
Return to top
Show: