共用方式為


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

適用於