UiPath Documentation
activities
latest
false
Important :
Veuillez noter que ce contenu a été localisé en partie à l’aide de la traduction automatique. La localisation du contenu nouvellement publié peut prendre 1 à 2 semaines avant d’être disponible.

Activités UIAutomation

Dernière mise à jour 14 mai 2026

Mettre en surbrillance (Highlight)

Met en surbrillance visuellement un élément d'IU spécifié en l'entourant dans une boîte.

Cette API doit être ajoutée après Ouvrir ou Joindre.

Définition

Espace de noms: UiPath.UIAutomationNext.API.Models

Assembly: UiPath.UIAutomationNext.API.Models (dans UiPath.UIAutomationNext.API.Models dll)

Surcharges

SurchargeDescription
Highlight(String, HighlightOptions)Met en surbrillance un élément d’IU spécifié, identifié comme une chaîne du référentiel d’objets, ainsi que d’autres personnalisations.
Highlight(TargetAnchorableModel, HighlightOptions)Met en surbrillance un élément d'IU spécifique, identifié comme TargetAnchorableModel, ainsi que d'autres personnalisations.
Highlight(String, KnownColor, Double)Met en surbrillance un élément d'IU spécifique, identifié comme une chaîne du référentiel d'objets, tout en spécifiant la couleur de surbrillance et la durée pendant laquelle il doit être mis en surbrillance.

Highlight(String, HighlightOptions)

Met en surbrillance un élément d’IU spécifié, identifié comme une chaîne du référentiel d’objets, ainsi que d’autres personnalisations.

Highlight(
    string target,
    HighlightOptions highlightOptions)
Highlight(
    string target,
    HighlightOptions highlightOptions)

target Chaîne : l’élément d’IU que vous souhaitez surligner, identifié sous la forme d’une chaîne du référentiel d’objets.

highlightOptions : Options supplémentaires pour personnaliser l'action de surbrillance :

* `HighlightTime Double` - The number
  of seconds for which to highlight the target element. The default
  value is 2 seconds.
* `Color
  KnownColor` - Choose the color of the box that surrounds
  the highlighted element. The default value is Gold.
* `HighlightTime Double` - The number
  of seconds for which to highlight the target element. The default
  value is 2 seconds.
* `Color
  KnownColor` - Choose the color of the box that surrounds
  the highlighted element. The default value is Gold.

Highlight(TargetAnchorableModel, HighlightOptions)

Met en surbrillance un élément d'IU spécifique, identifié comme TargetAnchorableModel, ainsi que d'autres personnalisations.

Highlight(
    TargetAnchorableModel target,
    HighlightOptions highlightOptions)
Highlight(
    TargetAnchorableModel target,
    HighlightOptions highlightOptions)

target TargetAnchorableModel : l'élément d'IU que vous souhaitez surligner, identifié comme un objet TargetAnchorableModel .

highlightOptions : Options supplémentaires pour personnaliser l'action de surbrillance :

* `HighlightTime Double` - The number of seconds
  for which to highlight the target element. The default value is 2
  seconds.
* `Color KnownColor` - Choose the color of the
  box that surrounds the highlighted element. The default value is
  Gold.
* `HighlightTime Double` - The number of seconds
  for which to highlight the target element. The default value is 2
  seconds.
* `Color KnownColor` - Choose the color of the
  box that surrounds the highlighted element. The default value is
  Gold.

Highlight(String, KnownColor, Double)

Met en surbrillance un élément d'IU spécifique, identifié comme une chaîne du référentiel d'objets, tout en spécifiant la couleur de surbrillance et la durée pendant laquelle il doit être mis en surbrillance.

Highlight(
    string target,   
    [KnownColor color],
    [double duration])
Highlight(
    string target,   
    [KnownColor color],
    [double duration])

target Chaîne : l’élément d’IU que vous souhaitez surligner, identifié sous la forme d’une chaîne du référentiel d’objets.

color KnownColor : choisissez la couleur de la boîte qui entoure l'élément en surbrillance. La valeur par défaut est Or.

duration Double : le nombre de secondes pendant lesquelles l'élément cible doit être mis en surbrillance. La valeur par défaut est 2 secondes.

Cette page vous a-t-elle été utile ?

Connecter

Besoin d'aide ? Assistance

Vous souhaitez apprendre ? UiPath Academy

Vous avez des questions ? UiPath Forum

Rester à jour