In This Article

TreeListBoxItemAutomationPeer Class

Exposes TreeListBox data items to UI Automation.

public class TreeListBoxItemAutomationPeer : ItemAutomationPeer
Inheritance:
object AutomationPeer ItemAutomationPeer object
Derived:
PropertyGridItemAutomationPeer TreeListViewItemAutomationPeer

Constructors

TreeListBoxItemAutomationPeer(object, TreeListBoxAutomationPeer)

Initializes a new instance of the TreeListBoxItemAutomationPeer class.

public TreeListBoxItemAutomationPeer(object item, TreeListBoxAutomationPeer itemsControlAutomationPeer)
Parameter Type Description
item object

The data item.

itemsControlAutomationPeer TreeListBoxAutomationPeer

The items control automation peer.

Properties

ExpandCollapseState

Gets the state, expanded or collapsed, of the control.

public ExpandCollapseState ExpandCollapseState { get; }

Property Value

ExpandCollapseState

Methods

Collapse()

Hides all nodes, controls, or content that are descendants of the control.

public void Collapse()

Expand()

Displays all child nodes, controls, or content of the control.

public void Expand()

GetAutomationControlTypeCore()

Gets the control type for the element that is associated with the UI Automation peer.

protected override AutomationControlType GetAutomationControlTypeCore()

Returns

AutomationControlType:

The control type.

GetChildrenCore()

Returns the collection elements represented in the UI Automation tree as immediate child elements of the automation peer.

protected override List<AutomationPeer> GetChildrenCore()

Returns

List<AutomationPeer>:

The list of child elements.

GetClassNameCore()

Gets a name that is used with AutomationControlType, to differentiate the control that is represented by this AutomationPeer.

protected override string GetClassNameCore()

Returns

string:

The class name.

GetLocalizedControlTypeCore()

Gets a localized string that represents the AutomationControlType value for the control that is associated with this automation peer.

protected override string GetLocalizedControlTypeCore()

Returns

string:

The control type.

GetPattern(PatternInterface)

Gets the control pattern that is associated with the specified PatternInterface.

public override object GetPattern(PatternInterface patternInterface)
Parameter Type Description
patternInterface PatternInterface

A value from the PatternInterface enumeration.

Returns

object:

The object that implements the pattern interface; null if the peer does not support this interface.

Remarks

This method will return a 'this' pointer in the follow cases:

  • If patternInterface is PatternInterface.ExpandCollapse.

ScrollIntoView()

Scrolls the item into view.

public void ScrollIntoView()