Class TreeViewAutomationPeer
Exposes TreeView types to UI automation.
Inheritance
Implements
Inherited Members
Namespace: System.Windows.Automation.Peers
Assembly: OpenSilver.dll
Syntax
public class TreeViewAutomationPeer : FrameworkElementAutomationPeer, IDependencyObject, ISelectionProvider
Constructors
| Improve this Doc View SourceTreeViewAutomationPeer(TreeView)
Initializes a new instance of the TreeViewAutomationPeer class.
Declaration
public TreeViewAutomationPeer(TreeView owner)
Parameters
Type | Name | Description |
---|---|---|
TreeView | owner | The TreeView to associate with the TreeViewAutomationPeer. |
Methods
| Improve this Doc View SourceGetAutomationControlTypeCore()
Gets the control type for the TreeView that is associated with this TreeViewAutomationPeer. This method is called by GetAutomationControlType().
Declaration
protected override AutomationControlType GetAutomationControlTypeCore()
Returns
Type | Description |
---|---|
AutomationControlType | The Tree enumeration value. |
Overrides
| Improve this Doc View SourceGetChildrenCore()
Gets the collection of child elements of the TreeView that is associated with this TreeViewAutomationPeer.
Declaration
protected override List<AutomationPeer> GetChildrenCore()
Returns
Type | Description |
---|---|
System.Collections.Generic.List<AutomationPeer> | The collection of child elements. |
Overrides
| Improve this Doc View SourceGetClassNameCore()
Gets the name of the TreeView that is associated with TreeViewAutomationPeer. This method is called by GetClassName().
Declaration
protected override string GetClassNameCore()
Returns
Type | Description |
---|---|
System.String | A string that contains TreeView. |
Overrides
| Improve this Doc View SourceGetPattern(PatternInterface)
Gets a control pattern for the TreeView that is associated with this TreeViewAutomationPeer.
Declaration
public override object GetPattern(PatternInterface patternInterface)
Parameters
Type | Name | Description |
---|---|---|
PatternInterface | patternInterface | One of the enumeration values that indicates the control pattern. |
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 SourceISelectionProvider.CanSelectMultiple
Gets a value indicating whether the UI automation provider allows more than one child element to be selected at the same time.
Declaration
bool ISelectionProvider.CanSelectMultiple { get; }
Returns
Type | Description |
---|---|
System.Boolean | True if multiple selection is allowed; otherwise, false. |
Remarks
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
ISelectionProvider.GetSelection()
Retrieves a UI automation provider for each child element that is selected.
Declaration
IRawElementProviderSimple[] ISelectionProvider.GetSelection()
Returns
Type | Description |
---|---|
IRawElementProviderSimple[] | An array of UI automation providers. |
Remarks
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
ISelectionProvider.IsSelectionRequired
Gets a value indicating whether the UI automation provider requires at least one child element to be selected.
Declaration
bool ISelectionProvider.IsSelectionRequired { get; }
Returns
Type | Description |
---|---|
System.Boolean | True if selection is required; otherwise, false. |
Remarks
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.