Class ComboBoxAutomationPeer
Exposes ComboBox types to UI automation.
Inheritance
Inherited Members
Namespace: System.Windows.Automation.Peers
Assembly: OpenSilver.dll
Syntax
public class ComboBoxAutomationPeer : SelectorAutomationPeer, IDependencyObject, ISelectionProvider, IValueProvider, IExpandCollapseProvider
Constructors
| Improve this Doc View SourceComboBoxAutomationPeer(ComboBox)
Initializes a new instance of the ComboBoxAutomationPeer class.
Declaration
public ComboBoxAutomationPeer(ComboBox owner)
Parameters
Type | Name | Description |
---|---|---|
ComboBox | owner | The ComboBox instance to associate with this ComboBoxAutomationPeer. |
Methods
| Improve this Doc View SourceCreateItemAutomationPeer(Object)
Creates an automation peer for an individual item in the ComboBox (or other element) associated with this ComboBoxAutomationPeer.
Declaration
protected override ItemAutomationPeer CreateItemAutomationPeer(object item)
Parameters
Type | Name | Description |
---|---|---|
System.Object | item | The item to create the automation peer for. |
Returns
Type | Description |
---|---|
ItemAutomationPeer | The new ListBoxItemAutomationPeer for the specified item in the children collection. |
Overrides
| Improve this Doc View SourceGetAutomationControlTypeCore()
Gets the control type for the element associated with this ComboBoxAutomationPeer. This method is called by GetAutomationControlType().
Declaration
protected override AutomationControlType GetAutomationControlTypeCore()
Returns
Type | Description |
---|---|
AutomationControlType | The control type as a value of the enumeration. |
Overrides
| Improve this Doc View SourceGetClassNameCore()
Gets the name of the class that is associated with this ComboBoxAutomationPeer. 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 ComboBoxAutomationPeer.
Declaration
public override object GetPattern(PatternInterface pattern)
Parameters
Type | Name | Description |
---|---|---|
PatternInterface | pattern | 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 SourceIExpandCollapseProvider.Collapse()
Blocking method that returns after the element has been collapsed.
Declaration
void IExpandCollapseProvider.Collapse()
IExpandCollapseProvider.Expand()
Blocking method that returns after the element has been expanded.
Declaration
void IExpandCollapseProvider.Expand()
IExpandCollapseProvider.ExpandCollapseState
indicates an element's current Collapsed or Expanded state
Declaration
ExpandCollapseState IExpandCollapseProvider.ExpandCollapseState { get; }
Returns
Type | Description |
---|---|
ExpandCollapseState |
IValueProvider.IsReadOnly
Indicates that the value can only be read, not modified. returns True if the control is read-only
Declaration
bool IValueProvider.IsReadOnly { get; }
Returns
Type | Description |
---|---|
System.Boolean |
IValueProvider.SetValue(String)
Request to set the value that this UI element is representing
Declaration
void IValueProvider.SetValue(string val)
Parameters
Type | Name | Description |
---|---|---|
System.String | val | Value to set the UI to, as an object |
IValueProvider.Value
Value of a value control, as a a string.
Declaration
string IValueProvider.Value { get; }
Returns
Type | Description |
---|---|
System.String |