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 中引入。 有关详细信息,请参见版本和依赖关系

适用于