TreeViewItemAutomationPeer.GetPattern Method (PatternInterface)

 

Gets the control pattern for the TreeViewItem that is associated with this TreeViewItemAutomationPeer.

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

public override object GetPattern(
	PatternInterface patternInterface
)

Parameters

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

One of the enumeration values.

Return Value

Type: System.Object

If patternInterface is ScrollItem, SelectionItem, or ExpandCollapse, this method returns the current instance of the TreeViewItemAutomationPeer; otherwise, it returns null.

.NET Framework
Available since 3.0
Silverlight
Available since 3.0
Return to top
Show: