Share via


ProgressBarAutomationPeer.GetPattern(PatternInterface) 方法

定義

取得與此 ProgressBarAutomationPeer 相關聯之 ProgressBar 的控制項模式。

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

如果 patternInterfaceRangeValue,而且 IsIndeterminatetrue,這個方法會傳回 ProgressBarAutomationPeer 的目前執行個體,否則這個方法會傳回 null

適用於