Class DropDownMenuItemAutomationPeer
Provides UI Automation support for the DropDownMenuItem control.
Inheritance
Namespace: Syncfusion.Windows.Controls.Tools.AutomationPeer
Assembly: Syncfusion.Shared.WPF.dll
Syntax
public class DropDownMenuItemAutomationPeer : FrameworkElementAutomationPeer
Constructors
DropDownMenuItemAutomationPeer(DropDownMenuItem)
Initializes a new instance of the DropDownMenuItemAutomationPeer class for the specified DropDownMenuItem control.
Declaration
public DropDownMenuItemAutomationPeer(DropDownMenuItem control)
Parameters
| Type | Name | Description |
|---|---|---|
| DropDownMenuItem | control |
Methods
GetAutomationControlTypeCore()
Gets the control type for the System.Windows.UIElement that is associated with this System.Windows.Automation.Peers.UIElementAutomationPeer. This method is called by System.Windows.Automation.Peers.AutomationPeer.GetAutomationControlType.
Declaration
protected override AutomationControlType GetAutomationControlTypeCore()
Returns
| Type | Description |
|---|---|
| System.Windows.Automation.Peers.AutomationControlType | The System.Windows.Automation.Peers.AutomationControlType.Custom enumeration value. |
GetAutomationIdCore()
Declaration
protected override string GetAutomationIdCore()
Returns
| Type |
|---|
| System.String |
GetClassNameCore()
Gets the name of the System.Windows.UIElement that is associated with this System.Windows.Automation.Peers.UIElementAutomationPeer. This method is called by System.Windows.Automation.Peers.AutomationPeer.GetClassName.
Declaration
protected override string GetClassNameCore()
Returns
| Type | Description |
|---|---|
| System.String | An System.String.Empty string. |
GetHelpTextCore()
Retrieves the help text associated with the DropDownMenuItem control for UI Automation.
Declaration
protected override string GetHelpTextCore()
Returns
| Type | Description |
|---|---|
| System.String | A string containing the help text, as provided by the base implementation. |
GetNameCore()
Retrieves the name of the associated DropDownMenuItem control for UI Automation. If the base name is null or empty, it returns the control's label as the name.
Declaration
protected override string GetNameCore()
Returns
| Type | Description |
|---|---|
| System.String | A string representing the name of the control, used by UI Automation clients. |