Class SplitMenuButtonAutomationPeer
Class that provides UI Automation support for SplitMenuButton.
Inheritance
Implements
Namespace: Syncfusion.Windows.Controls.Tools.AutomationPeer
Assembly: Syncfusion.Tools.Wpf.dll
Syntax
public class SplitMenuButtonAutomationPeer : FrameworkElementAutomationPeer, IInvokeProvider
Constructors
SplitMenuButtonAutomationPeer(SplitMenuButton)
Initializes a new instance of the SplitMenuButtonAutomationPeer class.
Declaration
public SplitMenuButtonAutomationPeer(SplitMenuButton control)
Parameters
| Type | Name | Description |
|---|---|---|
| SplitMenuButton | control | The control. |
Methods
GetAutomationControlTypeCore()
Gets the control type for the ribbon button that is associated with this SplitMenuButtonAutomationPeer.
Declaration
protected override AutomationControlType GetAutomationControlTypeCore()
Returns
| Type | Description |
|---|---|
| System.Windows.Automation.Peers.AutomationControlType | AutomationControlType Button |
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. |
GetItemStatusCore()
Returns a string that describes the status of the associated SplitMenuButton for UI Automation.
Declaration
protected override string GetItemStatusCore()
Returns
| Type | Description |
|---|---|
| System.String | A string representing the current status of the SplitMenuButton, including its icon size and small icon information. |
GetLocalizedControlTypeCore()
Gets the localized version of the control type for the SplitMenuButton.
Declaration
protected override string GetLocalizedControlTypeCore()
Returns
| Type | Description |
|---|---|
| System.String | Returns the button. |
GetPattern(PatternInterface)
Gets the control pattern for the System.Windows.UIElement that is associated with this System.Windows.Automation.Peers.UIElementAutomationPeer.
Declaration
public override object GetPattern(PatternInterface patternInterface)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Automation.Peers.PatternInterface | patternInterface | A value from the enumeration. |
Returns
| Type | Description |
|---|---|
| System.Object | returns pattern Interface. |
Invoke()
Sends a request to activate a control and initiate its single, unambiguous action.
Declaration
public void Invoke()
Exceptions
| Type | Condition |
|---|---|
| System.Windows.Automation.ElementNotEnabledException | If the control is not enabled. |