UIElement3DAutomationPeer.GetAutomationControlTypeCore 方法

定義

傳回與這個 UIElement3DAutomationPeer 相關聯之 UIElement3D 的控制項類型。 這個方法是由 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

傳回

所有情況下都是 Custom

備註

如果您的類別符合其中一個已知的控制項類型,請覆寫 GetAutomationControlTypeCore 方法以傳回該 ControlType 。 請注意,雖然現有的 ControlType 值通常與 2D 控制項相關聯,但 ControlType 表示控制項的功能,而不是其外觀。 因此,如果您在 UIElement3D 使用者按一下動作時叫用動作,您可能想要 GetHelpTextCore 傳回 ControlType.Button

UIElement3DAutomationPeer.NET Framework 3.5 版引進。 如需詳細資訊,請參閱版本和相依性

適用於