DocumentViewerAutomationPeer.GetPattern(PatternInterface) 方法

定义

获取与此 DocumentViewerAutomationPeer 关联的 DocumentViewer 的控件模式。

public:
 override System::Object ^ GetPattern(System::Windows::Automation::Peers::PatternInterface patternInterface);
public override object GetPattern (System.Windows.Automation.Peers.PatternInterface patternInterface);
override this.GetPattern : System.Windows.Automation.Peers.PatternInterface -> obj
Public Overrides Function GetPattern (patternInterface As PatternInterface) As Object

参数

patternInterface
PatternInterface

枚举值之一。

返回

Object

如果 patternInterfaceScrollItem,则此方法返回此 DocumentViewerAutomationPeerScrollViewerAutomationPeer。 此方法还将 DocumentViewerAutomationPeer 设置为 EventsSource

适用于