Class TextBlockAutomationPeer
Exposes TextBlock types to UI automation.
Inheritance
Inherited Members
Namespace: System.Windows.Automation.Peers
Assembly: OpenSilver.dll
Syntax
public class TextBlockAutomationPeer : FrameworkElementAutomationPeer, IDependencyObject
Constructors
| Improve this Doc View SourceTextBlockAutomationPeer(TextBlock)
Initializes a new instance of the TextBlockAutomationPeer class.
Declaration
public TextBlockAutomationPeer(TextBlock owner)
Parameters
Type | Name | Description |
---|---|---|
TextBlock | owner | The TextBlock to associate with the TextBlockAutomationPeer. |
Methods
| Improve this Doc View SourceGetAutomationControlTypeCore()
Gets the control type for the TextBlock that is associated with this TextBlockAutomationPeer. This method is called by GetAutomationControlType().
Declaration
protected override AutomationControlType GetAutomationControlTypeCore()
Returns
Type | Description |
---|---|
AutomationControlType | A value of the enumeration. |
Overrides
| Improve this Doc View SourceGetClassNameCore()
Gets the name of the class that is associated with this TextBlockAutomationPeer. This method is called by GetClassName().
Declaration
protected override string GetClassNameCore()
Returns
Type | Description |
---|---|
System.String | The class name. |
Overrides
| Improve this Doc View SourceGetNameCore()
Gets the UI Automation Name for the TextBlock that is associated with this TextBlockAutomationPeer. Called by GetName().
Declaration
protected override string GetNameCore()
Returns
Type | Description |
---|---|
System.String | The UI Automation Name of the object that is associated with this automation peer. |
Overrides
| Improve this Doc View SourceIsControlElementCore()
Gets a value that indicates whether the TextBlock associated with this peer is understood by the user as interactive or as contributing to the logical structure of the UI.
Declaration
protected override bool IsControlElementCore()
Returns
Type | Description |
---|---|
System.Boolean | false if the element is part of an applied template; otherwise, true. |