alexa
menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download

    Show / Hide Table of Contents

    Class TreeViewItemAutomationPeer

    Exposes TreeViewItem to UI Automation

    Inheritance
    System.Object
    TreeViewItemAutomationPeer
    Implements
    System.Windows.Automation.Provider.ISelectionItemProvider
    System.Windows.Automation.Provider.IExpandCollapseProvider
    Namespace: Syncfusion.UI.Xaml.TreeView.Automation.Peer
    Assembly: Syncfusion.SfTreeView.WPF.dll
    Syntax
    public class TreeViewItemAutomationPeer : FrameworkElementAutomationPeer, ISelectionItemProvider, IExpandCollapseProvider

    Constructors

    TreeViewItemAutomationPeer(TreeViewItem)

    Initializes a new instance of the TreeViewItemAutomationPeer class.

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

    The owner element.

    Properties

    ExpandCollapseState

    Declaration
    public ExpandCollapseState ExpandCollapseState { get; }
    Property Value
    Type
    System.Windows.Automation.ExpandCollapseState

    IsSelected

    Declaration
    public bool IsSelected { get; }
    Property Value
    Type
    System.Boolean

    SelectionContainer

    Declaration
    public IRawElementProviderSimple SelectionContainer { get; }
    Property Value
    Type
    System.Windows.Automation.Provider.IRawElementProviderSimple

    Methods

    AddToSelection()

    Declaration
    public void AddToSelection()

    Collapse()

    Declaration
    public void Collapse()

    Expand()

    Declaration
    public void Expand()

    GetAutomationControlTypeCore()

    Declaration
    protected override AutomationControlType GetAutomationControlTypeCore()
    Returns
    Type
    System.Windows.Automation.Peers.AutomationControlType

    GetNameCore()

    Declaration
    protected override string GetNameCore()
    Returns
    Type
    System.String

    GetPattern(PatternInterface)

    Declaration
    public override object GetPattern(PatternInterface patternInterface)
    Parameters
    Type Name Description
    System.Windows.Automation.Peers.PatternInterface patternInterface
    Returns
    Type
    System.Object

    RemoveFromSelection()

    Declaration
    public void RemoveFromSelection()

    Select()

    Declaration
    public void Select()

    Implements

    System.Windows.Automation.Provider.ISelectionItemProvider
    System.Windows.Automation.Provider.IExpandCollapseProvider
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved