GetPattern Method
Collapse the table of content
Expand the table of content

FlowDocumentScrollViewerAutomationPeer.GetPattern Method (PatternInterface)


Gets the control pattern for the FlowDocumentScrollViewer that is associated with this FlowDocumentScrollViewerAutomationPeer.

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

public override object GetPattern(
	PatternInterface patternInterface


Type: System.Windows.Automation.Peers.PatternInterface

One of the enumeration values.

Return Value

Type: System.Object

An object that supports the control pattern if patternInterface is a supported value; otherwise, null.

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

The value of patternInterface

The return value


The ScrollViewerAutomationPeer for this FlowDocumentScrollViewerAutomationPeer.


An object that implements the ITextProvider interface.


An object that implements the ISynchronizedInputProvider interface.

.NET Framework
Available since 3.0
Return to top
© 2016 Microsoft