PartEditBoxBaseAutomationPeer<T> Class
Exposes PartEditBoxBase<T> types to UI Automation.
public class PartEditBoxBaseAutomationPeer<T> : FrameworkElementAutomationPeer
- Type Parameters:
-
T
-The type of value being edited.
- Inheritance:
- object AutomationPeer UIElementAutomationPeer FrameworkElementAutomationPeer object
Constructors
PartEditBoxBaseAutomationPeer(PartEditBoxBase<T>)
Initializes a new instance of the PartEditBoxBaseAutomationPeer
class.
public PartEditBoxBaseAutomationPeer(PartEditBoxBase<T> owner)
Parameter | Type | Description |
---|---|---|
owner | PartEditBoxBase<T> | The owner element. |
Properties
ExpandCollapseState
Gets the state, expanded or collapsed, of the control.
IsReadOnly
Gets a value that indicates whether the value of a control is read-only.
public bool IsReadOnly { get; }
Property Value
- bool:
true
if the value is read-only;false
if it can be modified.
ToggleState
Gets whether the control is toggled.
public ToggleState ToggleState { get; }
Property Value
- ToggleState:
true
if the control is toggled; otherwise,false
.
Value
Gets the value 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.
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.
SetValue(string)
Sets the value of a control.
public void SetValue(string value)
Parameter | Type | Description |
---|---|---|
value | string | The value to set. The provider is responsible for converting the value to the appropriate data type. |
Toggle()
Toggles the control's state.
public void Toggle()