語言

DocumentViewerBaseAutomationPeer.GetPattern(PatternInterface) 方法

定義

取得與此DocumentViewerBase相關聯的DocumentViewerBaseAutomationPeer控制模式。

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 , Text則此方法回傳一個 ITextProvider 參考。

適用於