Skip to main content
All docs
V25.1
  • TdxAutomationProperties.Name Property

    Stores the name of the processed UIA node.

    Declaration

    property Name: TdxStringAutomationProperty read;

    Property Value

    Type Description
    TdxStringAutomationProperty

    The UIA node name.

    Remarks

    You can use Name and FullDescription properties to modify the current UIA node name and description in OnCalculateProperty and OnInitializeProperties event handlers.

    Code Example: Initialize UIA Node Names for Editors

    The following code example initializes Name and FullDescription UIA node names for an existing single-line text editor (TcxTextEdit):

    uses
      dxUIAClasses,  // Declares all UI Automation classes
      cxEdit,  // Declares base editor classes and auxiliary types
      cxTextEdit;  // Declares the TcxTextEdit class
    // ...
    
    procedure TMyForm.cxTextEdit1PropertiesAutomationCalculateProperty(
      ASender: TObject; AProperties: TdxAutomationProperties);
    begin
      AProperties.Name.Value := 'Task Description';
      AProperties.FullDescription.Value := 'Non-Editable';
    end;
    
    See Also