共用方式為


AutomatableTextBlock Class

Definition

Implements a TextBlock control visible to automation. WPF does not expose by default TextBlock to UIA because it's a very common used control.

public ref class AutomatableTextBlock : System::Windows::Controls::TextBlock
public class AutomatableTextBlock : System.Windows.Controls.TextBlock
type AutomatableTextBlock = class
    inherit TextBlock
Public Class AutomatableTextBlock
Inherits TextBlock
Inheritance
AutomatableTextBlock

Remarks

WPF does not expose the TextBlock by default to UIA because it’s a very commonly used control.

Constructors

AutomatableTextBlock()

Creates a new instance of the class.

Methods

OnCreateAutomationPeer()

Gets the automation peer.

Applies to