DocumentViewerAutomationPeer.GetPattern Method (PatternInterface)

 

Gets the control pattern for the DocumentViewer that is associated with this DocumentViewerAutomationPeer.

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, this method returns the ScrollViewerAutomationPeer for this DocumentViewerAutomationPeer. This method also sets DocumentViewerAutomationPeer as the EventsSource.

.NET Framework
Available since 3.0
Return to top
Show: