Class RadioButtonAutomationPeer
Exposes RadioButton types to UI automation.
Inheritance
Inherited Members
Namespace: System.Windows.Automation.Peers
Assembly: OpenSilver.dll
Syntax
public class RadioButtonAutomationPeer : ToggleButtonAutomationPeer, IDependencyObject, IToggleProvider, ISelectionItemProvider
Constructors
| Improve this Doc View SourceRadioButtonAutomationPeer(RadioButton)
Initializes a new instance of the RadioButtonAutomationPeer class.
Declaration
public RadioButtonAutomationPeer(RadioButton owner)
Parameters
Type | Name | Description |
---|---|---|
RadioButton | owner | The RadioButton to associate with the RadioButtonAutomationPeer. |
Methods
| Improve this Doc View SourceGetAutomationControlTypeCore()
This method is called by GetAutomationControlType().
Declaration
protected override AutomationControlType GetAutomationControlTypeCore()
Returns
Type | Description |
---|---|
AutomationControlType | A value of the enumeration. |
Overrides
| Improve this Doc View SourceGetClassNameCore()
Gets the name of the class that is associated with this RadioButtonAutomationPeer. This method is called by GetClassName().
Declaration
protected override string GetClassNameCore()
Returns
Type | Description |
---|---|
System.String | The class name. |
Overrides
| Improve this Doc View SourceGetPattern(PatternInterface)
Gets an object that supports the requested pattern, based on the patterns supported by this RadioButtonAutomationPeer.
Declaration
public override object GetPattern(PatternInterface patternInterface)
Parameters
Type | Name | Description |
---|---|---|
PatternInterface | patternInterface | One of the enumeration values. |
Returns
Type | Description |
---|---|
System.Object | The object that implements the pattern interface, or null if the specified pattern interface is not implemented by this peer. |
Overrides
Explicit Interface Implementations
| Improve this Doc View SourceISelectionItemProvider.AddToSelection()
Adds current element to selection
Declaration
void ISelectionItemProvider.AddToSelection()
ISelectionItemProvider.IsSelected
Check whether an element is selected
Declaration
bool ISelectionItemProvider.IsSelected { get; }
Returns
Type | Description |
---|---|
System.Boolean | returns true if the element is selected |
ISelectionItemProvider.RemoveFromSelection()
Removes current element from selection
Declaration
void ISelectionItemProvider.RemoveFromSelection()
ISelectionItemProvider.Select()
Sets the current element as the selection This clears the selection from other elements in the container
Declaration
void ISelectionItemProvider.Select()
ISelectionItemProvider.SelectionContainer
The logical element that supports the SelectionPattern for this Item
Declaration
IRawElementProviderSimple ISelectionItemProvider.SelectionContainer { get; }
Returns
Type | Description |
---|---|
IRawElementProviderSimple | returns an IRawElementProviderSimple |