UIElement3DAutomationPeer.GetAutomationControlTypeCore 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
傳回與這個 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 版引進。 如需詳細資訊,請參閱版本和相依性。
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應