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

指定控件模式的枚举值。

返回

Object

如果 patternInterfaceGridTableMultipleViewSelection,则此方法返回 this 指针;否则,此方法返回 null

适用于