共用方式為


CalendarAutomationPeer.GetPattern(PatternInterface) 方法

定義

取得支援該項目之指定的控制項模式的物件,其與自動化對等相關聯。

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

列舉值,指定控制項模式。

傳回

如果 patternInterfaceGridTableMultipleViewSelection,則這個方法會傳回 this 指標,否則會傳回 null

適用於