GridViewCellAutomationPeer.GetAutomationControlTypeCore 方法

定义

获取与此 GridViewCellAutomationPeer 关联的元素的控件类型。 此方法由 GetAutomationControlType() 调用。

protected:
 override System::Windows::Automation::Peers::AutomationControlType GetAutomationControlTypeCore();
protected override System.Windows.Automation.Peers.AutomationControlType GetAutomationControlTypeCore ();
override this.GetAutomationControlTypeCore : unit -> System.Windows.Automation.Peers.AutomationControlType
Protected Overrides Function GetAutomationControlTypeCore () As AutomationControlType

返回

AutomationControlType

如果此 GridViewCellAutomationPeerTextBlock 元素关联,则此方法将返回 Text;否则此方法将返回 Custom

适用于