TreeListBoxItemWrapperAutomationPeer Class
Exposes TreeListBoxItem types to UI Automation.
public class TreeListBoxItemWrapperAutomationPeer : FrameworkElementAutomationPeer
- Inheritance:
- object AutomationPeer UIElementAutomationPeer FrameworkElementAutomationPeer object
Constructors
TreeListBoxItemWrapperAutomationPeer(TreeListBoxItem)
Exposes TreeListBoxItem types to UI Automation.
public TreeListBoxItemWrapperAutomationPeer(TreeListBoxItem owner)
| Parameter | Type | Description |
|---|---|---|
| owner | TreeListBoxItem | The owner element. |
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()
Gets the control type for the UIElement that is associated with this UIElementAutomationPeer. This method is called by GetAutomationControlType().
protected override AutomationControlType GetAutomationControlTypeCore()
Returns
- AutomationControlType:
The Custom enumeration value.
GetClassNameCore()
Gets the name of the UIElement that is associated with this UIElementAutomationPeer. This method is called by GetClassName().
GetLocalizedControlTypeCore()
When overridden in a derived class, is called by GetLocalizedControlType().
GetPattern(PatternInterface)
Gets the control pattern for the UIElement that is associated with this UIElementAutomationPeer.
public override object GetPattern(PatternInterface patternInterface)
| Parameter | Type | Description |
|---|---|---|
| patternInterface | PatternInterface | A value from the enumeration. |
Returns
- object:
An object that implements the ISynchronizedInputProvider interface if
patternInterfaceis SynchronizedInput; 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. |