Class SegmentedControlAutomationPeer
Exposes SfSegmentedControl control to UI Automation.
Inheritance
Implements
Namespace: Syncfusion.UI.Xaml.Automation.Peers
Assembly: Syncfusion.Editors.WinUI.dll
Syntax
public class SegmentedControlAutomationPeer : FrameworkElementAutomationPeer, ISelectionProvider
Constructors
SegmentedControlAutomationPeer(SfSegmentedControl)
Initializes a new instance of the SegmentedControlAutomationPeer class.
Declaration
public SegmentedControlAutomationPeer(SfSegmentedControl control)
Parameters
Type | Name | Description |
---|---|---|
SfSegmentedControl | control | The owner element. |
Properties
CanSelectMultiple
Gets a value that indicates whether the Microsoft UI Automation provider allows more than one child element to be selected concurrently.
Declaration
public bool CanSelectMultiple { get; }
Property Value
Type | Description |
---|---|
System.Boolean | true, if multiple selection is allowed; otherwise, false. |
IsSelectionRequired
Gets a value that indicates whether the UI Automation provider requires at least one child element to be selected.
Declaration
public bool IsSelectionRequired { get; }
Property Value
Type | Description |
---|---|
System.Boolean | true, if selection is required; otherwise, false. |
Methods
GetAutomationControlTypeCore()
Provides the SegmentedControlAutomationPeer behavior when a Microsoft UI Automation client calls GetAutomationControlType.
Declaration
protected override AutomationControlType GetAutomationControlTypeCore()
Returns
Type | Description |
---|---|
Microsoft.UI.Xaml.Automation.Peers.AutomationControlType | Returns the enum value of type Microsoft.UI.Xaml.Automation.Peers.AutomationControlType. |
GetNameCore()
Provides the SegmentedControlAutomationPeer behavior when a Microsoft UI Automation client calls GetName.
Declaration
protected override string GetNameCore()
Returns
Type | Description |
---|---|
System.String | Returns a string value. |
GetPatternCore(PatternInterface)
Gets the control pattern that is associated with the specified Microsoft.UI.Xaml.Automation.Peers.PatternInterface.
Declaration
protected override object GetPatternCore(PatternInterface patternInterface)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.UI.Xaml.Automation.Peers.PatternInterface | patternInterface | The instance of Microsoft.UI.Xaml.Automation.Peers.PatternInterface. |
Returns
Type | Description |
---|---|
System.Object | Returns the instance of Microsoft.UI.Xaml.Automation.Peers.PatternInterface. |
GetSelection()
Retrieves a UI Automation provider for each child element that is selected.
Declaration
public IRawElementProviderSimple[] GetSelection()
Returns
Type | Description |
---|---|
Microsoft.UI.Xaml.Automation.Provider.IRawElementProviderSimple[] | Returns the array of Microsoft.UI.Xaml.Automation.Provider.IRawElementProviderSimple. |