menu

WinUI

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class TreeViewItemAutomationPeer - WinUI API Reference | Syncfusion

    Show / Hide Table of Contents

    Class TreeViewItemAutomationPeer

    Exposes TreeViewItem to UI Automation

    Inheritance
    System.Object
    TreeViewItemAutomationPeer
    Implements
    Microsoft.UI.Xaml.Automation.Provider.ISelectionItemProvider
    Microsoft.UI.Xaml.Automation.Provider.IExpandCollapseProvider
    Namespace: Syncfusion.UI.Xaml.Automation.Peers
    Assembly: Syncfusion.TreeView.WinUI.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
    Microsoft.UI.Xaml.Automation.ExpandCollapseState

    IsSelected

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

    SelectionContainer

    Declaration
    public IRawElementProviderSimple SelectionContainer { get; }
    Property Value
    Type
    Microsoft.UI.Xaml.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
    Microsoft.UI.Xaml.Automation.Peers.AutomationControlType

    GetLevelCore()

    Declaration
    protected override int GetLevelCore()
    Returns
    Type
    System.Int32

    GetNameCore()

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

    GetPatternCore(PatternInterface)

    Declaration
    protected override object GetPatternCore(PatternInterface patternInterface)
    Parameters
    Type Name Description
    Microsoft.UI.Xaml.Automation.Peers.PatternInterface patternInterface
    Returns
    Type
    System.Object

    GetPositionInSetCore()

    Declaration
    protected override int GetPositionInSetCore()
    Returns
    Type
    System.Int32

    GetSizeOfSetCore()

    Declaration
    protected override int GetSizeOfSetCore()
    Returns
    Type
    System.Int32

    RemoveFromSelection()

    Declaration
    public void RemoveFromSelection()

    Select()

    Declaration
    public void Select()

    Implements

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