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)

Exposes TreeListBox data items to UI Automation.

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:

The state, expanded or collapsed, of the control.

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()

When overridden in a derived class, is called by GetAutomationControlType().

protected override AutomationControlType GetAutomationControlTypeCore()

Returns

AutomationControlType:

The control type.

GetClassNameCore()

When overridden in a derived class, is called by GetClassName().

protected override string GetClassNameCore()

Returns

string:

The class name.

GetLocalizedControlTypeCore()

When overridden in a derived class, is called by GetLocalizedControlType().

protected override string GetLocalizedControlTypeCore()

Returns

string:

The type of the control.

GetPattern(PatternInterface)

Returns the object that supports the specified control pattern of the element that is associated with this automation peer.

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

An enumeration value that specifies the control pattern.

Returns

object:

An object that supports the control pattern if patternInterface is a supported value; otherwise, null.

ScrollIntoView()

Scrolls the content area of a container object in order to display the control within the visible region (viewport) of the container.

public void ScrollIntoView()

Exceptions

Type Condition
InvalidOperationException

The item cannot be scrolled into view.

Extension Methods