Show / Hide Table of Contents

Class TreeViewItemAutomationPeer

Exposes the items in TreeViewItem types to UI automation.

Inheritance
System.Object
DependencyObject
AutomationPeer
FrameworkElementAutomationPeer
TreeViewItemAutomationPeer
Implements
IExpandCollapseProvider
ISelectionItemProvider
IScrollItemProvider
Inherited Members
FrameworkElementAutomationPeer.Owner
FrameworkElementAutomationPeer.FromElement(UIElement)
FrameworkElementAutomationPeer.CreatePeerForElement(UIElement)
FrameworkElementAutomationPeer.GetAcceleratorKeyCore()
FrameworkElementAutomationPeer.GetAccessKeyCore()
FrameworkElementAutomationPeer.GetAutomationIdCore()
FrameworkElementAutomationPeer.GetHelpTextCore()
FrameworkElementAutomationPeer.GetItemStatusCore()
FrameworkElementAutomationPeer.GetItemTypeCore()
FrameworkElementAutomationPeer.GetLabeledByCore()
FrameworkElementAutomationPeer.GetNameCore()
FrameworkElementAutomationPeer.IsRequiredForFormCore()
FrameworkElementAutomationPeer.GetChildrenCore()
FrameworkElementAutomationPeer.GetBoundingRectangleCore()
FrameworkElementAutomationPeer.GetClickablePointCore()
FrameworkElementAutomationPeer.IsContentElementCore()
FrameworkElementAutomationPeer.IsControlElementCore()
FrameworkElementAutomationPeer.IsPasswordCore()
FrameworkElementAutomationPeer.IsEnabledCore()
FrameworkElementAutomationPeer.GetLocalizedControlTypeCore()
FrameworkElementAutomationPeer.GetOrientationCore()
FrameworkElementAutomationPeer.HasKeyboardFocusCore()
FrameworkElementAutomationPeer.IsKeyboardFocusableCore()
FrameworkElementAutomationPeer.IsOffscreenCore()
FrameworkElementAutomationPeer.SetFocusCore()
AutomationPeer.EventsSource
AutomationPeer.ListenerExists(AutomationEvents)
AutomationPeer.GetAcceleratorKey()
AutomationPeer.GetAccessKey()
AutomationPeer.GetAutomationControlType()
AutomationPeer.GetAutomationId()
AutomationPeer.GetBoundingRectangle()
AutomationPeer.GetChildren()
AutomationPeer.GetClassName()
AutomationPeer.GetClickablePoint()
AutomationPeer.GetHelpText()
AutomationPeer.GetItemStatus()
AutomationPeer.GetItemType()
AutomationPeer.GetLabeledBy()
AutomationPeer.GetLocalizedControlType()
AutomationPeer.GetName()
AutomationPeer.GetOrientation()
AutomationPeer.HasKeyboardFocus()
AutomationPeer.IsContentElement()
AutomationPeer.IsControlElement()
AutomationPeer.IsEnabled()
AutomationPeer.IsKeyboardFocusable()
AutomationPeer.IsOffscreen()
AutomationPeer.IsPassword()
AutomationPeer.IsRequiredForForm()
AutomationPeer.SetFocus()
AutomationPeer.InvalidatePeer()
AutomationPeer.GetParent()
AutomationPeer.RaiseAutomationEvent(AutomationEvents)
AutomationPeer.RaisePropertyChangedEvent(AutomationProperty, Object, Object)
AutomationPeer.PeerFromProvider(IRawElementProviderSimple)
AutomationPeer.ProviderFromPeer(AutomationPeer)
DependencyObject.GetValue(DependencyProperty)
DependencyObject.SetCurrentValue(DependencyProperty, Object)
DependencyObject.ReadLocalValue(DependencyProperty)
DependencyObject.SetValue(DependencyProperty, Object)
DependencyObject.SetValue(DependencyPropertyKey, Object)
DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs)
DependencyObject.CoerceValue(DependencyProperty)
DependencyObject.Dispatcher
DependencyObject.INTERNAL_OnAttachedToVisualTree()
DependencyObject.INTERNAL_OnDetachedFromVisualTree()
DependencyObject.ClearValue(DependencyProperty)
DependencyObject.ClearValue(DependencyPropertyKey)
DependencyObject.CheckAccess()
DependencyObject.GetAnimationBaseValue(DependencyProperty)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Windows.Automation.Peers
Assembly: OpenSilver.dll
Syntax
public class TreeViewItemAutomationPeer : FrameworkElementAutomationPeer, IDependencyObject, IExpandCollapseProvider, ISelectionItemProvider, IScrollItemProvider

Constructors

| Improve this Doc View Source

TreeViewItemAutomationPeer(TreeViewItem)

Initializes a new instance of the TreeViewItemAutomationPeer class.

Declaration
public TreeViewItemAutomationPeer(TreeViewItem owner)
Parameters
Type Name Description
TreeViewItem owner

The TreeViewItem instance to associate with this TreeViewItemAutomationPeer.

Methods

| Improve this Doc View Source

GetAutomationControlTypeCore()

Gets the control type for the TreeViewItem that is associated with this TreeViewItemAutomationPeer. This method is called by GetAutomationControlType().

Declaration
protected override AutomationControlType GetAutomationControlTypeCore()
Returns
Type Description
AutomationControlType

The TreeItem enumeration value.

Overrides
FrameworkElementAutomationPeer.GetAutomationControlTypeCore()
| Improve this Doc View Source

GetClassNameCore()

Gets the name of the TreeViewItem that is associated with this TreeViewItemAutomationPeer. This method is called by GetClassName().

Declaration
protected override string GetClassNameCore()
Returns
Type Description
System.String

A string that contains TreeViewItem.

Overrides
FrameworkElementAutomationPeer.GetClassNameCore()
| Improve this Doc View Source

GetPattern(PatternInterface)

Gets the control pattern for the TreeViewItem that is associated with this TreeViewItemAutomationPeer.

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
FrameworkElementAutomationPeer.GetPattern(PatternInterface)

Explicit Interface Implementations

| Improve this Doc View Source

IExpandCollapseProvider.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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

IExpandCollapseProvider.ExpandCollapseState

Gets the state (expanded or collapsed) of the control.

Declaration
ExpandCollapseState IExpandCollapseProvider.ExpandCollapseState { get; }
Returns
Type Description
ExpandCollapseState

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

ISelectionItemProvider.IsSelected

Gets a value indicating whether an item is selected.

Declaration
bool ISelectionItemProvider.IsSelected { get; }
Returns
Type Description
System.Boolean

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

ISelectionItemProvider.SelectionContainer

Gets the UI automation provider that implements ISelectionProvider and acts as the container for the calling object.

Declaration
IRawElementProviderSimple ISelectionItemProvider.SelectionContainer { get; }
Returns
Type Description
IRawElementProviderSimple

The UI automation provider.

Remarks

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Implements

IExpandCollapseProvider
ISelectionItemProvider
IScrollItemProvider

Extension Methods

DependencyObjectHelper.GetSelfAndAncestors(DependencyObject)
VisualTreeExtensions.GetVisualAncestors(DependencyObject)
VisualTreeExtensions.GetVisualAncestorsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualChildren(DependencyObject)
VisualTreeExtensions.GetVisualChildrenAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualDescendants(DependencyObject)
VisualTreeExtensions.GetVisualDescendantsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualSiblings(DependencyObject)
VisualTreeExtensions.GetVisualSiblingsAndSelf(DependencyObject)
  • Improve this Doc
  • View Source