Share via


FlowDocumentScrollViewerAutomationPeer.GetPattern(PatternInterface) 方法

定義

取得與此 FlowDocumentScrollViewerAutomationPeer 相關聯之 FlowDocumentScrollViewer 的控制項模式。

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

其中一個列舉值。

傳回

如果 patternInterface 是支援的值,則為支援控制項模式的物件,否則為 null

備註

下表描述 GetPattern 方法根據 的值 patternInterface 所傳回的內容:

patternInterface 的值 傳回值
Scroll 這個 ScrollViewerAutomationPeerFlowDocumentScrollViewerAutomationPeer
Text 實作 ITextProvider 介面的物件。
SynchronizedInput 實作 ISynchronizedInputProvider 介面的物件。

適用於