Class TreeViewItemAutomationPeer
Exposes the items in
Tree
Inheritance
Inherited Members
Namespace: System.Windows.Automation.Peers
Assembly: OpenSilver.dll
Syntax
public class TreeViewItemAutomationPeer : FrameworkElementAutomationPeer, IDependencyObject, IExpandCollapseProvider, ISelectionItemProvider, IScrollItemProvider
Constructors
| Improve this Doc View SourceTreeViewItemAutomationPeer(TreeViewItem)
Initializes a new instance of the
Tree
Declaration
public TreeViewItemAutomationPeer(TreeViewItem owner)
Parameters
Type | Name | Description |
---|---|---|
Tree |
owner | The Tree |
Methods
| Improve this Doc View SourceGetAutomationControlTypeCore()
Gets the control type for the
Tree
Declaration
protected override AutomationControlType GetAutomationControlTypeCore()
Returns
Type | Description |
---|---|
Automation |
The
Tree |
Overrides
| Improve this Doc View SourceGetClassNameCore()
Gets the name of the
Tree
Declaration
protected override string GetClassNameCore()
Returns
Type | Description |
---|---|
System. |
A string that contains TreeViewItem. |
Overrides
| Improve this Doc View SourceGetPattern(PatternInterface)
Gets the control pattern for the
Tree
Declaration
public override object GetPattern(PatternInterface patternInterface)
Parameters
Type | Name | Description |
---|---|---|
Pattern |
patternInterface | One of the enumeration values. |
Returns
Type | Description |
---|---|
System. |
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()
Hides all nodes, controls, or content that are descendants of the control.
Declaration
void IExpandCollapseProvider.Collapse()
Remarks
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
IExpandCollapseProvider.Expand()
Displays all child nodes, controls, or content of the control.
Declaration
void IExpandCollapseProvider.Expand()
Remarks
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
IExpandCollapseProvider.ExpandCollapseState
Gets the state (expanded or collapsed) of the control.
Declaration
ExpandCollapseState IExpandCollapseProvider.ExpandCollapseState { get; }
Returns
Type | Description |
---|---|
Expand |
The state (expanded or collapsed) of the control. |
Remarks
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
IScrollItemProvider.ScrollIntoView()
Scrolls the content area of a container object in order to display the control within the visible region (viewport) of the container.
Declaration
void IScrollItemProvider.ScrollIntoView()
Remarks
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
ISelectionItemProvider.AddToSelection()
Adds the current element to the collection of selected items.
Declaration
void ISelectionItemProvider.AddToSelection()
Remarks
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
ISelectionItemProvider.IsSelected
Gets a value indicating whether an item is selected.
Declaration
bool ISelectionItemProvider.IsSelected { get; }
Returns
Type | Description |
---|---|
System. |
True if an item is selected; otherwise, false. |
Remarks
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
ISelectionItemProvider.RemoveFromSelection()
Removes the current element from the collection of selected items.
Declaration
void ISelectionItemProvider.RemoveFromSelection()
Remarks
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
ISelectionItemProvider.Select()
Clears any selection and then selects the current element.
Declaration
void ISelectionItemProvider.Select()
Remarks
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
ISelectionItemProvider.SelectionContainer
Gets the UI automation provider that implements
ISelection
Declaration
IRawElementProviderSimple ISelectionItemProvider.SelectionContainer { get; }
Returns
Type | Description |
---|---|
IRaw |
The UI automation provider. |
Remarks
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.