TreeListBoxItemAutomationPeer Class
Exposes TreeListBox data items to UI Automation.
public class TreeListBoxItemAutomationPeer : ItemAutomationPeer
- Inheritance:
- object AutomationPeer ItemAutomationPeer object
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.
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
.
GetLocalizedControlTypeCore()
Gets a localized string that represents the AutomationControlType
value for the control that is associated with this automation peer.
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
isPatternInterface.ExpandCollapse
.
ScrollIntoView()
Scrolls the item into view.
public void ScrollIntoView()