Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

Methods and events of the PasswordBox element

The PasswordBox element in RPA Desktop Design Studio is a text box that displays placeholder characters while you type a string.

The methods and events of the PasswordBox element are displayed in the Object Explorer pane.

Methods

  • Clear

    Clears the password from the current element.

  • Enable

    Gets or sets a value indicating whether the element can respond to user interaction.

    • If true, the element is enabled
    • If false, the element is not enabled.
    • GetNativeProperty

    Gets the value of the built-in property of the current element.

  • GetPassword

    Retrieves the password text data from the current element.

  • InvokeNativeMethod

    Invokes the built-in method of the current element.

  • SetContextMenu

    Sets the context menu for the UI element. It accepts the input in either a string array or a comma-separated string.

  • SetNativeProperty

    Sets the value of the built-in property of the current element.

  • SetPassword

    Sets the password text data to the current element.

  • SetVisibility

    Gets or sets a value that indicates whether the current element and all its child elements are displayed.

    • If true, the current element and all its child elements are displayed.
    • If false, the current element and all its child elements aren’t displayed.

Events

  • OnContextMenuClick

    Occurs when an option on the context menu is clicked.

  • MouseEnter

    Occurs when the mouse device enters that element field.

  • MouseLeave

    Occurs when the mouse device leaves that element field.

  • OnMouseClick

    Occurs when the element is clicked.

  • GotFocus

    Occurs when the focus is on the current element.

  • LostFocus

    Occurs when the focus moves out of the current element.

Parent Topic:Methods and events of elements